이지우 - 대체문자 스케줄러 테스트 작업 중
This commit is contained in:
parent
b059021dfd
commit
07b737940b
@ -119,4 +119,11 @@ public class KakaoSentVO extends UserDefaultVO{
|
||||
|
||||
private String yellowId;
|
||||
|
||||
//이지우 발송결과 테스트
|
||||
private int successCountTest;
|
||||
private int waitCountTest;
|
||||
private int failCountTest;
|
||||
private int kakaoResendSuccCountTest;
|
||||
private int kakaoResendFailCountTest;
|
||||
//이지우 발송결과 테스트 끝
|
||||
}
|
||||
|
||||
@ -302,7 +302,13 @@ public class KakaoSentServiceImpl extends EgovAbstractServiceImpl implements Ka
|
||||
result.setFailCount(eachCnt.getFailCount());
|
||||
result.setKakaoResendSuccCount(eachCnt.getKakaoResendSuccCount());
|
||||
result.setKakaoResendFailCount(eachCnt.getKakaoResendFailCount());
|
||||
|
||||
//이지우 발송결과 테스트
|
||||
result.setSuccessCountTest(eachCnt.getSuccessCountTest());
|
||||
result.setWaitCountTest(eachCnt.getWaitCountTest());
|
||||
result.setFailCountTest(eachCnt.getFailCountTest());
|
||||
result.setKakaoResendSuccCountTest(eachCnt.getKakaoResendSuccCountTest());
|
||||
result.setKakaoResendFailCountTest(eachCnt.getKakaoResendFailCountTest());
|
||||
//이지우 발송결과 테스트 끝
|
||||
result.setMsgGroupCnt(
|
||||
Integer.valueOf(result.getSuccessCount() + result.getWaitCount() + result.getFailCount()).toString()
|
||||
);
|
||||
|
||||
@ -73,6 +73,7 @@ import itn.com.cmm.util.MJUtil;
|
||||
import itn.com.cmm.util.RedirectUrlMaker;
|
||||
import itn.com.cmm.util.StringUtil;
|
||||
import itn.com.utl.fcc.service.EgovStringUtil;
|
||||
import itn.let.kakao.admin.kakaoAt.service.MjonKakaoATVO;
|
||||
import itn.let.lett.service.HashConfVO;
|
||||
import itn.let.lett.service.LetterService;
|
||||
import itn.let.lett.service.LetterVO;
|
||||
@ -6544,4 +6545,18 @@ public class MjonMsgDataController {
|
||||
return "web/msgdata/MsgSentListAjax";
|
||||
}
|
||||
|
||||
//이지우 발송결과 테스트
|
||||
@RequestMapping(value= {"/resendTest.do"})
|
||||
public String resendTest(@ModelAttribute("searchVO") MjonKakaoATVO mjonKakaoATVO, ModelMap model) throws Exception{
|
||||
|
||||
try {
|
||||
System.out.println("=============SchedulerUtil=====runKakaoResendUpdate =============>");
|
||||
schdlrManageService.updateKakaoResendResult();
|
||||
}catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
return "redirect:/web/kakao/sent/selectKakaoSentView.do";
|
||||
}
|
||||
//이지우 발송결과 테스트 끝
|
||||
}
|
||||
|
||||
@ -581,7 +581,7 @@ public class SchdlrManageServiceImpl extends EgovAbstractServiceImpl implements
|
||||
*/
|
||||
@Override
|
||||
public void updateKakaoResendResult() throws Exception {
|
||||
|
||||
long startTime = System.currentTimeMillis();
|
||||
// 대체문자 대상 조회
|
||||
List<MjonMsgVO> resendLogList = mjonMsgDataDAO.selectBizResendLogList();
|
||||
for(MjonMsgVO vo : resendLogList) {
|
||||
@ -595,6 +595,8 @@ public class SchdlrManageServiceImpl extends EgovAbstractServiceImpl implements
|
||||
mjonMsgDataDAO.updateResendResult(vo);
|
||||
mjonMsgDataDAO.deleteBizResendLog(vo);
|
||||
}
|
||||
|
||||
long endTime = System.currentTimeMillis();
|
||||
long elapsedTime = (endTime - startTime) / 1000; // 초 단위 변환
|
||||
System.out.println("updateKakaoResendResult 실행 시간: " + elapsedTime + "초 (" + resendLogList.size() + "건 처리)");
|
||||
}
|
||||
}
|
||||
|
||||
@ -1681,6 +1681,19 @@
|
||||
, 0 AS successPrice
|
||||
, 0 AS kakaoResendSuccPrice
|
||||
</isNotEqual>
|
||||
<!-- 이지우 발송결과 테스트 -->
|
||||
, a.successCountTest
|
||||
, a.waitCountTest
|
||||
, a.failCountTest
|
||||
<isEqual property="bizKakaoResendYn" compareValue="Y">
|
||||
, a.kakaoResendSuccCountTest
|
||||
, a.kakaoResendFailCountTest
|
||||
</isEqual>
|
||||
<isNotEqual property="bizKakaoResendYn" compareValue="Y">
|
||||
, 0 AS kakaoResendSuccCountTest
|
||||
, 0 AS kakaoResendFailCountTest
|
||||
</isNotEqual>
|
||||
<!-- 이지우 발송결과 테스트 끝-->
|
||||
FROM (
|
||||
SELECT
|
||||
t1.MSG_GROUP_ID
|
||||
@ -1697,6 +1710,16 @@
|
||||
, 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
|
||||
, 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
|
||||
</isEqual>
|
||||
<!-- 이지우 발송결과 테스트 -->
|
||||
, t1.MSG_RESULT AS msgResult
|
||||
, SUM(IF(t1.MSG_RESULT = '10', 1, 0)) AS successCountTest
|
||||
, SUM(IF(t1.MSG_RESULT IS NULL OR TRIM(t1.MSG_RESULT) ='',1,0)) AS waitCountTest
|
||||
, 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
|
||||
<isEqual property="bizKakaoResendYn" compareValue="Y">
|
||||
, SUM(IF(t1.MSG_RESULT = '40', 1, 0)) AS kakaoResendSuccCountTest
|
||||
, SUM(IF(t1.MSG_RESULT = '50', 1, 0)) AS kakaoResendFailCountTest
|
||||
</isEqual>
|
||||
<!-- 이지우 발송결과 테스트 끝-->
|
||||
FROM mj_msg_data t1 FORCE INDEX (idx_msgdata_groupid_delfalg_msgtype_curstate)
|
||||
<isEqual property="bizKakaoResendYn" compareValue="Y">
|
||||
LEFT OUTER JOIN BIZ_LOG BL1 ON t1.BIZ_UMID = BL1.CMID
|
||||
|
||||
@ -236,7 +236,24 @@ function pageUnitChg(obj){
|
||||
<fmt:formatNumber value="${resultAllSentList.msgGroupCnt}" type="number" groupingUsed="true" />
|
||||
<%-- <c:out value="${resultAllSentList.msgGroupCnt}"/> --%>
|
||||
</td>
|
||||
<!-- 이지우 발송결과 테스트 -->
|
||||
<td>
|
||||
<fmt:formatNumber value="${resultAllSentList.waitCount}" type="number" groupingUsed="true" /> / <fmt:formatNumber value="${resultAllSentList.waitCountTest}" type="number" groupingUsed="true" />
|
||||
</td>
|
||||
<td>
|
||||
<p class="c_002c9a"><fmt:formatNumber value="${resultAllSentList.successCount}" type="number" groupingUsed="true" />/<fmt:formatNumber value="${resultAllSentList.successCountTest}" type="number" groupingUsed="true" /></p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="c_e40000"><fmt:formatNumber value="${resultAllSentList.failCount}" type="number" groupingUsed="true" />/<fmt:formatNumber value="${resultAllSentList.failCountTest}" type="number" groupingUsed="true" /></p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="c_002c9a"<fmt:formatNumber value="${resultAllSentList.kakaoResendSuccCount}" type="number" groupingUsed="true" />/<fmt:formatNumber value="${resultAllSentList.kakaoResendSuccCountTest}" type="number" groupingUsed="true" /></p>
|
||||
</td>
|
||||
<td>
|
||||
<p class="c_e40000"><fmt:formatNumber value="${resultAllSentList.kakaoResendFailCount}" type="number" groupingUsed="true" />/<fmt:formatNumber value="${resultAllSentList.kakaoResendFailCountTest}" type="number" groupingUsed="true" /></p>
|
||||
</td>
|
||||
<!-- 이지우 발송결과 테스트 끝-->
|
||||
<%-- <td>
|
||||
<fmt:formatNumber value="${resultAllSentList.waitCount}" type="number" groupingUsed="true" />
|
||||
</td>
|
||||
<td>
|
||||
@ -250,7 +267,7 @@ function pageUnitChg(obj){
|
||||
</td>
|
||||
<td>
|
||||
<p class="c_e40000"><fmt:formatNumber value="${resultAllSentList.kakaoResendFailCount}" type="number" groupingUsed="true" /></p>
|
||||
</td>
|
||||
</td> --%>
|
||||
<td>
|
||||
<c:if test="${resultAllSentList.totPrice ne '-'}">
|
||||
<fmt:formatNumber value="${resultAllSentList.totPrice}" type="number" groupingUsed="true" minFractionDigits="0" maxFractionDigits="1" />
|
||||
|
||||
Loading…
Reference in New Issue
Block a user