문자전송 에러엑셀 다운로드 추가
This commit is contained in:
parent
c236d31c06
commit
43118182c1
@ -3426,7 +3426,8 @@ public class TestController {
|
||||
ModelMap model) throws Exception {
|
||||
System.out.println(" p_type :: "+p_type);
|
||||
|
||||
long startTime = System.nanoTime(); // 시작 시간 기록
|
||||
long startTime = System.nanoTime(); // 시작 시간 기록
|
||||
try {
|
||||
// 문자 환불
|
||||
if ("ONE".equals(p_type)) { //하루에 한번만 31일 대상으로 실행
|
||||
schdlrManageService.msgFailPayBackOneByDay();
|
||||
@ -3452,9 +3453,10 @@ public class TestController {
|
||||
|
||||
|
||||
System.out.println("== msgFailList =============> : "+ msgFailList.size());
|
||||
try {
|
||||
// 필요한 필드만 DTO로 매핑
|
||||
List<RefundDTO> dtoList = msgFailList.stream()
|
||||
// TEST
|
||||
|
||||
// 필요한 필드만 DTO로 매핑
|
||||
List<RefundDTO> dtoList = msgFailList.stream()
|
||||
.map(msg -> new RefundDTO(msg.getUserId(), msg.getMsgGroupId(), Integer.parseInt(msg.getUserData()), msg.getUserData(), msg.getEachPrice()))
|
||||
.collect(Collectors.toList());
|
||||
// JSON 변환
|
||||
@ -3463,16 +3465,15 @@ public class TestController {
|
||||
|
||||
mjonMsgDataDAO.updateMsgSentFailPayBackBatch(msgFailListJson);
|
||||
|
||||
}catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
// }
|
||||
long forAfterTime = System.currentTimeMillis(); // 코드 실행 후 시간
|
||||
long forSecDiffTime = (forAfterTime - forBeforeTime)/1000; // 코드 실행 전후 시간 차이 계산(초 단위)
|
||||
System.out.println("==PayBack for 2 =============> 수량 : "+msgFailList.size()+" ===== " + forSecDiffTime +"초");
|
||||
}
|
||||
|
||||
}catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
long endTime = System.nanoTime(); // 종료 시간 기록
|
||||
long executionTimeInSeconds = (endTime - startTime) / 1_000_000_000; // 실행 시간 (초)
|
||||
|
||||
|
||||
@ -681,6 +681,14 @@ function popMore(e){
|
||||
}
|
||||
}
|
||||
|
||||
// excel 오류정보 테스트
|
||||
$(document).on('click', '#errorExcelBtn', function() {
|
||||
if($tableError.getDataCount()<1){
|
||||
alert('오류 정보가 없습니다.');
|
||||
return false;
|
||||
}
|
||||
$tableError.download("xlsx", "error_data.xlsx");
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user