feat: cron 설정 및 iup summary 수정

main
kjh 2 months ago
parent 2fba255c92
commit 68e83790fd

@ -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/

@ -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<EnsResponseVO> accept(@RequestBody IupSigntalkReqVO reqDTO){
@ -51,13 +55,18 @@ public class IupSigntalkController {
return new ResponseEntity<EnsResponseVO>(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<EnsResponseVO> fetch(@RequestBody IupSigntalkReqVO reqDTO){
EnsResponseVO responseVO = iupSigntalkService.fetch(reqDTO.getLnkInputId());
return new ResponseEntity<EnsResponseVO>(responseVO, HttpStatus.OK);
}
@Operation(summary = "전송결과가져오기(일괄)")
@Operation(summary = "업무테이블 전송결과가져오기(일괄)")
@PostMapping(value = "/iup/signtalk/fetch/all", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<EnsResponseVO> fetchAll(){
EnsResponseVO responseVO = iupSigntalkService.fetchAll();

Loading…
Cancel
Save