API 발송통계 수정

This commit is contained in:
name 2023-08-09 10:10:15 +09:00
parent f2c9bc30fc
commit b7c3dfd3ee
5 changed files with 57 additions and 10 deletions

View File

@ -288,10 +288,7 @@
, A.CUR_STATE , A.CUR_STATE
, A.RSLT_CODE , A.RSLT_CODE
, A.RSLT_CODE2 , A.RSLT_CODE2
, CASE , B.SEND_KIND as sendKind
WHEN B.SEND_KIND = 'H' THEN 'WEB'
ELSE 'API'
END as sendKind
, CASE , CASE
WHEN B.MSG_TYPE = '6' WHEN B.MSG_TYPE = '6'
AND B.FILE_CNT > 0 AND B.FILE_CNT > 0
@ -496,7 +493,7 @@
, MD.CUR_STATE , MD.CUR_STATE
, MD.RSLT_CODE , MD.RSLT_CODE
, MD.RSLT_CODE2 , MD.RSLT_CODE2
, CASE WHEN MGD.SEND_KIND = 'H' THEN 'WEB' ELSE 'API' END as sendKind , MGD.SEND_KIND AS sendKind
,(<include refid="MjonMsgSentDAO.selectAgentResultQuery_MD"/>) AS RESULT ,(<include refid="MjonMsgSentDAO.selectAgentResultQuery_MD"/>) AS RESULT
FROM FROM
mj_msg_data MD mj_msg_data MD
@ -589,6 +586,9 @@
AND CALL_FROM LIKE CONCAT('%', #searchKeyword#, '%') AND CALL_FROM LIKE CONCAT('%', #searchKeyword#, '%')
</isEqual> </isEqual>
</isNotEmpty> </isNotEmpty>
<isNotEmpty property="searchCondition_01">
AND sendKind = #searchCondition_01#
</isNotEmpty>
<isNotEmpty property="startDate"> <isNotEmpty property="startDate">
<![CDATA[ <![CDATA[
AND DATE_FORMAT(REGDATE, '%Y-%m-%d') >= DATE_FORMAT(#startDate#, '%Y-%m-%d') AND DATE_FORMAT(REGDATE, '%Y-%m-%d') >= DATE_FORMAT(#startDate#, '%Y-%m-%d')
@ -613,7 +613,6 @@
$searchSortOrd$ $searchSortOrd$
</isNotEmpty> </isNotEmpty>
LIMIT #recordCountPerPage# OFFSET #firstIndex# LIMIT #recordCountPerPage# OFFSET #firstIndex#
</select> </select>

View File

@ -178,7 +178,19 @@ $(document).ready(function(){
</p> </p>
</td> </td>
<td name="listTd"> <td name="listTd">
<p>${resultAllSentList.sendKind }</p> <p>
<c:choose>
<c:when test="${resultAllSentList.sendKind eq 'H' }">
WEB
</c:when>
<c:when test="${resultAllSentList.sendKind eq 'A'}">
API
</c:when>
<c:otherwise>
-
</c:otherwise>
</c:choose>
</p>
</td> </td>
<td name="listTd"> <td name="listTd">
<button class="btnType btnType20" data-tooltip="rev_popup01" onClick="javascript:fnRevDetailPop('${resultAllSentList.msgGroupId}','${resultAllSentList.msgId}','${resultAllSentList.fileCnt}'); return false;">상세보기</button> <button class="btnType btnType20" data-tooltip="rev_popup01" onClick="javascript:fnRevDetailPop('${resultAllSentList.msgGroupId}','${resultAllSentList.msgId}','${resultAllSentList.fileCnt}'); return false;">상세보기</button>

View File

@ -170,7 +170,19 @@ $(document).ready(function(){
</p> </p>
</td> </td>
<td> <td>
${resultAllSentList.sendKind } <p>
<c:choose>
<c:when test="${resultAllSentList.sendKind eq 'H' }">
WEB
</c:when>
<c:when test="${resultAllSentList.sendKind eq 'A'}">
API
</c:when>
<c:otherwise>
-
</c:otherwise>
</c:choose>
</p>
</td> </td>
<td> <td>
<button class="btnType btnType20" data-tooltip="rev_popup01" onClick="javascript:fnRevDetailPop('${resultAllSentList.msgGroupId}','${resultAllSentList.msgId}','${resultAllSentList.fileCnt}'); return false;">상세보기</button> <button class="btnType btnType20" data-tooltip="rev_popup01" onClick="javascript:fnRevDetailPop('${resultAllSentList.msgGroupId}','${resultAllSentList.msgId}','${resultAllSentList.fileCnt}'); return false;">상세보기</button>

View File

@ -158,7 +158,19 @@ $(document).ready(function(){
</p> </p>
</td> </td>
<td> <td>
${resultAllSentList.sendKind } <p>
<c:choose>
<c:when test="${resultAllSentList.sendKind eq 'H' }">
WEB
</c:when>
<c:when test="${resultAllSentList.sendKind eq 'A'}">
API
</c:when>
<c:otherwise>
-
</c:otherwise>
</c:choose>
</p>
</td> </td>
<td> <td>
<button class="btnType btnType20" data-tooltip="rev_popup01" onClick="javascript:fnRevDetailPop('${resultAllSentList.msgGroupId}','${resultAllSentList.msgId}','${resultAllSentList.fileCnt}'); return false;">상세보기</button> <button class="btnType btnType20" data-tooltip="rev_popup01" onClick="javascript:fnRevDetailPop('${resultAllSentList.msgGroupId}','${resultAllSentList.msgId}','${resultAllSentList.fileCnt}'); return false;">상세보기</button>

View File

@ -170,7 +170,19 @@ $(document).ready(function(){
</p> </p>
</td> </td>
<td> <td>
${resultAllSentList.sendKind } <p>
<c:choose>
<c:when test="${resultAllSentList.sendKind eq 'H' }">
WEB
</c:when>
<c:when test="${resultAllSentList.sendKind eq 'A'}">
API
</c:when>
<c:otherwise>
-
</c:otherwise>
</c:choose>
</p>
</td> </td>
<td> <td>
<button class="btnType btnType20" data-tooltip="rev_popup01" onClick="javascript:fnRevDetailPop('${resultAllSentList.msgGroupId}','${resultAllSentList.msgId}','${resultAllSentList.fileCnt}'); return false;">상세보기</button> <button class="btnType btnType20" data-tooltip="rev_popup01" onClick="javascript:fnRevDetailPop('${resultAllSentList.msgGroupId}','${resultAllSentList.msgId}','${resultAllSentList.fileCnt}'); return false;">상세보기</button>