name 2023-08-09
API 발송통계 수정
@b7c3dfd3ee4cbb407846ba8a05ed4e1017f908f6
src/main/resources/egovframework/sqlmap/let/msg/MjonMsgSent_SQL_mysql.xml
--- src/main/resources/egovframework/sqlmap/let/msg/MjonMsgSent_SQL_mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/msg/MjonMsgSent_SQL_mysql.xml
@@ -288,10 +288,7 @@
 				, A.CUR_STATE
 				, A.RSLT_CODE
 				, A.RSLT_CODE2
-				, CASE
-					WHEN B.SEND_KIND = 'H' THEN 'WEB'
-					ELSE 'API'
-				END as sendKind
+				, B.SEND_KIND as sendKind
 				, CASE
 					WHEN B.MSG_TYPE = '6'
 						AND B.FILE_CNT > 0
@@ -496,7 +493,7 @@
 				, MD.CUR_STATE
 				, MD.RSLT_CODE
 				, 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
 			FROM
 				mj_msg_data MD
@@ -589,6 +586,9 @@
 				AND	CALL_FROM LIKE CONCAT('%', #searchKeyword#, '%')
 			</isEqual>
 		</isNotEmpty>
+		<isNotEmpty property="searchCondition_01">
+			AND sendKind = #searchCondition_01#
+		</isNotEmpty>
 		<isNotEmpty property="startDate">
 			<![CDATA[ 
 				AND 	DATE_FORMAT(REGDATE, '%Y-%m-%d') >= DATE_FORMAT(#startDate#, '%Y-%m-%d')
@@ -613,7 +613,6 @@
 			$searchSortOrd$
 		</isNotEmpty>
 		LIMIT  #recordCountPerPage# OFFSET #firstIndex#	
-	
 	</select>
 	
 	
src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentAllListAjax.jsp
--- src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentAllListAjax.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentAllListAjax.jsp
@@ -178,7 +178,19 @@
 								</p>
 							</td>
 							<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 name="listTd">
 								<button class="btnType btnType20" data-tooltip="rev_popup01" onClick="javascript:fnRevDetailPop('${resultAllSentList.msgGroupId}','${resultAllSentList.msgId}','${resultAllSentList.fileCnt}'); return false;">상세보기</button>
src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentCompleteListAjax.jsp
--- src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentCompleteListAjax.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentCompleteListAjax.jsp
@@ -170,7 +170,19 @@
 								</p>
 							</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>
 								<button class="btnType btnType20" data-tooltip="rev_popup01" onClick="javascript:fnRevDetailPop('${resultAllSentList.msgGroupId}','${resultAllSentList.msgId}','${resultAllSentList.fileCnt}'); return false;">상세보기</button>
src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentFailListAjax.jsp
--- src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentFailListAjax.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentFailListAjax.jsp
@@ -158,7 +158,19 @@
 								</p>
 							</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>
 								<button class="btnType btnType20" data-tooltip="rev_popup01" onClick="javascript:fnRevDetailPop('${resultAllSentList.msgGroupId}','${resultAllSentList.msgId}','${resultAllSentList.fileCnt}'); return false;">상세보기</button>
src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentReadyListAjax.jsp
--- src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentReadyListAjax.jsp
+++ src/main/webapp/WEB-INF/jsp/web/msgsent/MsgSentReadyListAjax.jsp
@@ -170,7 +170,19 @@
 								</p>
 							</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>
 								<button class="btnType btnType20" data-tooltip="rev_popup01" onClick="javascript:fnRevDetailPop('${resultAllSentList.msgGroupId}','${resultAllSentList.msgId}','${resultAllSentList.fileCnt}'); return false;">상세보기</button>
Add a comment
List