From 68e83790fddec40c4212a8c7b3f1a7339e52ac17 Mon Sep 17 00:00:00 2001 From: kjh Date: Wed, 11 Sep 2024 13:50:57 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20cron=20=EC=84=A4=EC=A0=95=20=EB=B0=8F?= =?UTF-8?q?=20iup=20summary=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cron/cron.txt | 41 +++++++++++++++++++ .../presentation/IupSigntalkController.java | 13 +++++- 2 files changed, 52 insertions(+), 2 deletions(-) create mode 100644 cron/cron.txt diff --git a/cron/cron.txt b/cron/cron.txt new file mode 100644 index 0000000..12674ff --- /dev/null +++ b/cron/cron.txt @@ -0,0 +1,41 @@ +#---------------------------------------------# +# IUP 스케줄러 +#---------------------------------------------# +# 인증톡 +## 업무 테이블 자료 접수 +*/2 * * * * curl -X POST https://phts-manager.koti.re.kr/iup/signtalk/accept/all + +## 업무 테이블 전송 결과 반영 +7 7-23 * * * curl -X POST https://phts-manager.koti.re.kr/iup/signtalk/fetch/all + + +#---------------------------------------------# +# [ENS] 전송모듈 스케줄러 +#---------------------------------------------# +# 통합고지 +*/1 9-18 * * * curl -X POST https://phts-manager.koti.re.kr/intgrn/noti/send/bulk/all +#*/2 7-21 * * * curl -X POST https://phts-manager.koti.re.kr/intgrn/noti/stat/bulk/all +0 9-21 * * * curl -X POST https://phts-manager.koti.re.kr/intgrn/noti/stat/closed +# 카카오 내문서함(인증톡) +*/1 9-18 * * * curl -X POST https://phts-manager.koti.re.kr/kko/mydoc/send/bulk/all +*/30 9-21 * * * curl -X POST https://phts-manager.koti.re.kr/kko/mydoc/stat/bulk/all +# 카카오 알림톡 +*/1 9-18 * * * curl -X POST https://phts-manager.koti.re.kr/kko/alimtalk/send/bulk/all +*/30 9-21 * * * curl -X POST https://phts-manager.koti.re.kr/kko/alimtalk/stat/bulk/all +# 네이버 고지서(인증톡) +*/1 9-18 * * * curl -X POST https://phts-manager.koti.re.kr/nv/signtalk/send/bulk/all +*/30 9-21 * * * curl -X POST https://phts-manager.koti.re.kr/nv/signtalk/stat/bulk/all + + +#---------------------------------------------# +# [ENS] 로그 데이터 삭제 스케줄러 +#---------------------------------------------# +59 8 * * * curl -X POST https://phts-manager.koti.re.kr/kko/mydoc/trunc/stat/his +59 8 * * * curl -X POST https://phts-manager.koti.re.kr/nv/signtalk/trunc/stat/his + + +#---------------------------------------------# +# [ENS] log 이동 +#---------------------------------------------# +* 0-23 * * * mv /jeus/logs/logback.log.2* /LOG/jeus/phts-manager/ +* 0-23 * * * mv /jeus/jeus8/bin/logs/logback.log.2* /LOG/jeus/phts-manager/ diff --git a/src/main/java/cokr/xit/ens/biz/iup/signtalk/presentation/IupSigntalkController.java b/src/main/java/cokr/xit/ens/biz/iup/signtalk/presentation/IupSigntalkController.java index 2d45730..113ff1b 100644 --- a/src/main/java/cokr/xit/ens/biz/iup/signtalk/presentation/IupSigntalkController.java +++ b/src/main/java/cokr/xit/ens/biz/iup/signtalk/presentation/IupSigntalkController.java @@ -22,6 +22,10 @@ public class IupSigntalkController { private final IupSigntalkService iupSigntalkService; + /** + * 업무테이블(TB_INPUT_XIT, TB_INPUT_DATA_XIT)에 접수 된 자료 처리 + * cron 으로 실행됨 + */ @Operation(summary = "접수") @PostMapping(value = "/iup/signtalk/accept", produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity accept(@RequestBody IupSigntalkReqVO reqDTO){ @@ -51,13 +55,18 @@ public class IupSigntalkController { return new ResponseEntity(responseVO, HttpStatus.OK); } - @Operation(summary = "전송결과가져오기") + /** + * ENS_INTGRN_SND_DTL 테이블에 반영 된 발송 결과를 TB_SEND_RESLT_V2 테이블에 반영 + * cron 으로 실행됨 + */ + + @Operation(summary = "업무테이블 전송결과가져오기") @PostMapping(value = "/iup/signtalk/fetch", produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity fetch(@RequestBody IupSigntalkReqVO reqDTO){ EnsResponseVO responseVO = iupSigntalkService.fetch(reqDTO.getLnkInputId()); return new ResponseEntity(responseVO, HttpStatus.OK); } - @Operation(summary = "전송결과가져오기(일괄)") + @Operation(summary = "업무테이블 전송결과가져오기(일괄)") @PostMapping(value = "/iup/signtalk/fetch/all", produces = MediaType.APPLICATION_JSON_VALUE) public ResponseEntity fetchAll(){ EnsResponseVO responseVO = iupSigntalkService.fetchAll();