이지우 - 대체문자 스케줄러 테스트 작업 중
@07b737940bab6cf52507a02a30cde146a48f1be8
--- src/main/java/itn/let/kakao/user/sent/service/KakaoSentVO.java
+++ src/main/java/itn/let/kakao/user/sent/service/KakaoSentVO.java
... | ... | @@ -119,4 +119,11 @@ |
| 119 | 119 |
|
| 120 | 120 |
private String yellowId; |
| 121 | 121 |
|
| 122 |
+ //이지우 발송결과 테스트 |
|
| 123 |
+ private int successCountTest; |
|
| 124 |
+ private int waitCountTest; |
|
| 125 |
+ private int failCountTest; |
|
| 126 |
+ private int kakaoResendSuccCountTest; |
|
| 127 |
+ private int kakaoResendFailCountTest; |
|
| 128 |
+ //이지우 발송결과 테스트 끝 |
|
| 122 | 129 |
} |
--- src/main/java/itn/let/kakao/user/sent/service/impl/KakaoSentServiceImpl.java
+++ src/main/java/itn/let/kakao/user/sent/service/impl/KakaoSentServiceImpl.java
... | ... | @@ -302,7 +302,13 @@ |
| 302 | 302 |
result.setFailCount(eachCnt.getFailCount()); |
| 303 | 303 |
result.setKakaoResendSuccCount(eachCnt.getKakaoResendSuccCount()); |
| 304 | 304 |
result.setKakaoResendFailCount(eachCnt.getKakaoResendFailCount()); |
| 305 |
- |
|
| 305 |
+ //이지우 발송결과 테스트 |
|
| 306 |
+ result.setSuccessCountTest(eachCnt.getSuccessCountTest()); |
|
| 307 |
+ result.setWaitCountTest(eachCnt.getWaitCountTest()); |
|
| 308 |
+ result.setFailCountTest(eachCnt.getFailCountTest()); |
|
| 309 |
+ result.setKakaoResendSuccCountTest(eachCnt.getKakaoResendSuccCountTest()); |
|
| 310 |
+ result.setKakaoResendFailCountTest(eachCnt.getKakaoResendFailCountTest()); |
|
| 311 |
+ //이지우 발송결과 테스트 끝 |
|
| 306 | 312 |
result.setMsgGroupCnt( |
| 307 | 313 |
Integer.valueOf(result.getSuccessCount() + result.getWaitCount() + result.getFailCount()).toString() |
| 308 | 314 |
); |
--- src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java
+++ src/main/java/itn/let/mjo/msgdata/web/MjonMsgDataController.java
... | ... | @@ -73,6 +73,7 @@ |
| 73 | 73 |
import itn.com.cmm.util.RedirectUrlMaker; |
| 74 | 74 |
import itn.com.cmm.util.StringUtil; |
| 75 | 75 |
import itn.com.utl.fcc.service.EgovStringUtil; |
| 76 |
+import itn.let.kakao.admin.kakaoAt.service.MjonKakaoATVO; |
|
| 76 | 77 |
import itn.let.lett.service.HashConfVO; |
| 77 | 78 |
import itn.let.lett.service.LetterService; |
| 78 | 79 |
import itn.let.lett.service.LetterVO; |
... | ... | @@ -6544,4 +6545,18 @@ |
| 6544 | 6545 |
return "web/msgdata/MsgSentListAjax"; |
| 6545 | 6546 |
} |
| 6546 | 6547 |
|
| 6548 |
+ //이지우 발송결과 테스트 |
|
| 6549 |
+ @RequestMapping(value= {"/resendTest.do"})
|
|
| 6550 |
+ public String resendTest(@ModelAttribute("searchVO") MjonKakaoATVO mjonKakaoATVO, ModelMap model) throws Exception{
|
|
| 6551 |
+ |
|
| 6552 |
+ try {
|
|
| 6553 |
+ System.out.println("=============SchedulerUtil=====runKakaoResendUpdate =============>");
|
|
| 6554 |
+ schdlrManageService.updateKakaoResendResult(); |
|
| 6555 |
+ }catch(Exception ex) {
|
|
| 6556 |
+ ex.printStackTrace(); |
|
| 6557 |
+ } |
|
| 6558 |
+ |
|
| 6559 |
+ return "redirect:/web/kakao/sent/selectKakaoSentView.do"; |
|
| 6560 |
+ } |
|
| 6561 |
+ //이지우 발송결과 테스트 끝 |
|
| 6547 | 6562 |
} |
--- src/main/java/itn/let/schdlr/service/impl/SchdlrManageServiceImpl.java
+++ src/main/java/itn/let/schdlr/service/impl/SchdlrManageServiceImpl.java
... | ... | @@ -581,7 +581,7 @@ |
| 581 | 581 |
*/ |
| 582 | 582 |
@Override |
| 583 | 583 |
public void updateKakaoResendResult() throws Exception {
|
| 584 |
- |
|
| 584 |
+ long startTime = System.currentTimeMillis(); |
|
| 585 | 585 |
// 대체문자 대상 조회 |
| 586 | 586 |
List<MjonMsgVO> resendLogList = mjonMsgDataDAO.selectBizResendLogList(); |
| 587 | 587 |
for(MjonMsgVO vo : resendLogList) {
|
... | ... | @@ -595,6 +595,8 @@ |
| 595 | 595 |
mjonMsgDataDAO.updateResendResult(vo); |
| 596 | 596 |
mjonMsgDataDAO.deleteBizResendLog(vo); |
| 597 | 597 |
} |
| 598 |
- |
|
| 598 |
+ long endTime = System.currentTimeMillis(); |
|
| 599 |
+ long elapsedTime = (endTime - startTime) / 1000; // 초 단위 변환 |
|
| 600 |
+ System.out.println("updateKakaoResendResult 실행 시간: " + elapsedTime + "초 (" + resendLogList.size() + "건 처리)");
|
|
| 599 | 601 |
} |
| 600 | 602 |
} |
--- src/main/resources/egovframework/sqlmap/let/mjo/kakao/KakaoSent_SQL_Mysql.xml
+++ src/main/resources/egovframework/sqlmap/let/mjo/kakao/KakaoSent_SQL_Mysql.xml
... | ... | @@ -1681,6 +1681,19 @@ |
| 1681 | 1681 |
, 0 AS successPrice |
| 1682 | 1682 |
, 0 AS kakaoResendSuccPrice |
| 1683 | 1683 |
</isNotEqual> |
| 1684 |
+ <!-- 이지우 발송결과 테스트 --> |
|
| 1685 |
+ , a.successCountTest |
|
| 1686 |
+ , a.waitCountTest |
|
| 1687 |
+ , a.failCountTest |
|
| 1688 |
+ <isEqual property="bizKakaoResendYn" compareValue="Y"> |
|
| 1689 |
+ , a.kakaoResendSuccCountTest |
|
| 1690 |
+ , a.kakaoResendFailCountTest |
|
| 1691 |
+ </isEqual> |
|
| 1692 |
+ <isNotEqual property="bizKakaoResendYn" compareValue="Y"> |
|
| 1693 |
+ , 0 AS kakaoResendSuccCountTest |
|
| 1694 |
+ , 0 AS kakaoResendFailCountTest |
|
| 1695 |
+ </isNotEqual> |
|
| 1696 |
+ <!-- 이지우 발송결과 테스트 끝--> |
|
| 1684 | 1697 |
FROM ( |
| 1685 | 1698 |
SELECT |
| 1686 | 1699 |
t1.MSG_GROUP_ID |
... | ... | @@ -1697,6 +1710,16 @@ |
| 1697 | 1710 |
, SUM(IF(t1.BIZ_KAKAO_RESEND_YN = 'Y' AND BL1.CALL_STATUS IN ('6600', '4100') AND t1.BIZ_KAKAO_RESEND_TYPE = 'SMS', 1, 0)) AS smsCnt
|
| 1698 | 1711 |
, SUM(IF(t1.BIZ_KAKAO_RESEND_YN = 'Y' AND BL1.CALL_STATUS IN ('6600', '4100') AND t1.BIZ_KAKAO_RESEND_TYPE = 'MMS', 1, 0)) AS mmsCnt
|
| 1699 | 1712 |
</isEqual> |
| 1713 |
+ <!-- 이지우 발송결과 테스트 --> |
|
| 1714 |
+ , t1.MSG_RESULT AS msgResult |
|
| 1715 |
+ , SUM(IF(t1.MSG_RESULT = '10', 1, 0)) AS successCountTest |
|
| 1716 |
+ , SUM(IF(t1.MSG_RESULT IS NULL OR TRIM(t1.MSG_RESULT) ='',1,0)) AS waitCountTest |
|
| 1717 |
+ , SUM(IF(t1.MSG_RESULT = '20' OR t1.MSG_RESULT = '30' OR t1.MSG_RESULT = '40' OR t1.MSG_RESULT = '50', 1, 0)) AS failCountTest |
|
| 1718 |
+ <isEqual property="bizKakaoResendYn" compareValue="Y"> |
|
| 1719 |
+ , SUM(IF(t1.MSG_RESULT = '40', 1, 0)) AS kakaoResendSuccCountTest |
|
| 1720 |
+ , SUM(IF(t1.MSG_RESULT = '50', 1, 0)) AS kakaoResendFailCountTest |
|
| 1721 |
+ </isEqual> |
|
| 1722 |
+ <!-- 이지우 발송결과 테스트 끝--> |
|
| 1700 | 1723 |
FROM mj_msg_data t1 FORCE INDEX (idx_msgdata_groupid_delfalg_msgtype_curstate) |
| 1701 | 1724 |
<isEqual property="bizKakaoResendYn" compareValue="Y"> |
| 1702 | 1725 |
LEFT OUTER JOIN BIZ_LOG BL1 ON t1.BIZ_UMID = BL1.CMID |
--- src/main/webapp/WEB-INF/jsp/web/kakao/sent/KakaoSentAllListAjax.jsp
+++ src/main/webapp/WEB-INF/jsp/web/kakao/sent/KakaoSentAllListAjax.jsp
... | ... | @@ -236,7 +236,24 @@ |
| 236 | 236 |
<fmt:formatNumber value="${resultAllSentList.msgGroupCnt}" type="number" groupingUsed="true" />
|
| 237 | 237 |
<%-- <c:out value="${resultAllSentList.msgGroupCnt}"/> --%>
|
| 238 | 238 |
</td> |
| 239 |
+ <!-- 이지우 발송결과 테스트 --> |
|
| 239 | 240 |
<td> |
| 241 |
+ <fmt:formatNumber value="${resultAllSentList.waitCount}" type="number" groupingUsed="true" /> / <fmt:formatNumber value="${resultAllSentList.waitCountTest}" type="number" groupingUsed="true" />
|
|
| 242 |
+ </td> |
|
| 243 |
+ <td> |
|
| 244 |
+ <p class="c_002c9a"><fmt:formatNumber value="${resultAllSentList.successCount}" type="number" groupingUsed="true" />/<fmt:formatNumber value="${resultAllSentList.successCountTest}" type="number" groupingUsed="true" /></p>
|
|
| 245 |
+ </td> |
|
| 246 |
+ <td> |
|
| 247 |
+ <p class="c_e40000"><fmt:formatNumber value="${resultAllSentList.failCount}" type="number" groupingUsed="true" />/<fmt:formatNumber value="${resultAllSentList.failCountTest}" type="number" groupingUsed="true" /></p>
|
|
| 248 |
+ </td> |
|
| 249 |
+ <td> |
|
| 250 |
+ <p class="c_002c9a"<fmt:formatNumber value="${resultAllSentList.kakaoResendSuccCount}" type="number" groupingUsed="true" />/<fmt:formatNumber value="${resultAllSentList.kakaoResendSuccCountTest}" type="number" groupingUsed="true" /></p>
|
|
| 251 |
+ </td> |
|
| 252 |
+ <td> |
|
| 253 |
+ <p class="c_e40000"><fmt:formatNumber value="${resultAllSentList.kakaoResendFailCount}" type="number" groupingUsed="true" />/<fmt:formatNumber value="${resultAllSentList.kakaoResendFailCountTest}" type="number" groupingUsed="true" /></p>
|
|
| 254 |
+ </td> |
|
| 255 |
+ <!-- 이지우 발송결과 테스트 끝--> |
|
| 256 |
+ <%-- <td> |
|
| 240 | 257 |
<fmt:formatNumber value="${resultAllSentList.waitCount}" type="number" groupingUsed="true" />
|
| 241 | 258 |
</td> |
| 242 | 259 |
<td> |
... | ... | @@ -250,7 +267,7 @@ |
| 250 | 267 |
</td> |
| 251 | 268 |
<td> |
| 252 | 269 |
<p class="c_e40000"><fmt:formatNumber value="${resultAllSentList.kakaoResendFailCount}" type="number" groupingUsed="true" /></p>
|
| 253 |
- </td> |
|
| 270 |
+ </td> --%> |
|
| 254 | 271 |
<td> |
| 255 | 272 |
<c:if test="${resultAllSentList.totPrice ne '-'}">
|
| 256 | 273 |
<fmt:formatNumber value="${resultAllSentList.totPrice}" type="number" groupingUsed="true" minFractionDigits="0" maxFractionDigits="1" />
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?