feat: NICE CI 인증톡 진행

cron 적용 반영
dev
Jonguk. Lim 1 month ago
parent 613ad05383
commit 6bd34dc6ba

@ -5,6 +5,9 @@
## 업무 테이블 자료 접수 ## 업무 테이블 자료 접수
*/2 * * * * curl -X POST https://phts-manager.koti.re.kr/iup/signtalk/accept/all */2 * * * * curl -X POST https://phts-manager.koti.re.kr/iup/signtalk/accept/all
## FIXME: 업무 테이블 자료 접수 - NICE CI 추가
*/2 * * * * curl -X POST https://phts-manager.koti.re.kr/nice/talk/accept/all
## 업무 테이블 전송 결과 반영 ## 업무 테이블 전송 결과 반영
7 7-23 * * * curl -X POST https://phts-manager.koti.re.kr/iup/signtalk/fetch/all 7 7-23 * * * curl -X POST https://phts-manager.koti.re.kr/iup/signtalk/fetch/all
@ -26,6 +29,9 @@
*/1 9-18 * * * curl -X POST https://phts-manager.koti.re.kr/nv/signtalk/send/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 */30 9-21 * * * curl -X POST https://phts-manager.koti.re.kr/nv/signtalk/stat/bulk/all
# FIXME: NICE CI 인증톡 추가
*/1 9-18 * * * curl -X POST https://phts-manager.koti.re.kr/nice/talk/send/bulk/all
*/30 9-21 * * * curl -X POST https://phts-manager.koti.re.kr/nice/talk/stat/bulk/all
#---------------------------------------------# #---------------------------------------------#
# [ENS] 로그 데이터 삭제 스케줄러 # [ENS] 로그 데이터 삭제 스케줄러

@ -3,7 +3,6 @@ package cokr.xit.ens.modules.nice.presentation;
import org.springframework.http.*; import org.springframework.http.*;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import cokr.xit.ens.modules.nice.model.*;
import cokr.xit.ens.modules.nice.service.*; import cokr.xit.ens.modules.nice.service.*;
import io.swagger.v3.oas.annotations.*; import io.swagger.v3.oas.annotations.*;
import io.swagger.v3.oas.annotations.tags.*; import io.swagger.v3.oas.annotations.tags.*;
@ -32,19 +31,19 @@ public class NiceCiController {
private final NiceCiAcceptService niceCiAcceptService; private final NiceCiAcceptService niceCiAcceptService;
@Operation(summary = "접수") @Operation(summary = "접수")
@PostMapping(value = "/accept", produces = MediaType.APPLICATION_JSON_VALUE) @PostMapping(value = "/accept/all", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> accept(final NiceCiDTO.NiceCiParam niceCiParam) { public ResponseEntity<?> accept() {
return new ResponseEntity<>(niceCiAcceptService.accept(niceCiParam), HttpStatus.OK); return new ResponseEntity<>(niceCiAcceptService.accept(), HttpStatus.OK);
} }
@Operation(summary = "(대량)전송요청") @Operation(summary = "(대량)전송요청")
@PostMapping(value = "/send/bulk", produces = MediaType.APPLICATION_JSON_VALUE) @PostMapping(value = "/send/bulk/all", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> sendBulk() { public ResponseEntity<?> sendBulk() {
return new ResponseEntity<>(niceCiService.requestSendBulk(), HttpStatus.OK); return new ResponseEntity<>(niceCiService.requestSendBulk(), HttpStatus.OK);
} }
@Operation(summary = "(대량)상태조회") @Operation(summary = "(대량)상태조회")
@PostMapping(value = "/status/bulk", produces = MediaType.APPLICATION_JSON_VALUE) @PostMapping(value = "/stat/bulk/all", produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<?> findBulkStatus() { public ResponseEntity<?> findBulkStatus() {
return new ResponseEntity<>(niceCiService.findBulkStatus(), HttpStatus.OK); return new ResponseEntity<>(niceCiService.findBulkStatus(), HttpStatus.OK);
} }

@ -81,9 +81,11 @@ public class NiceCiAcceptService {
* </pre> * </pre>
*/ */
@Transactional(propagation = Propagation.REQUIRES_NEW) @Transactional(propagation = Propagation.REQUIRES_NEW)
public EnsResponseVO<?> accept(final NiceCiDTO.NiceCiParam niceCiParam){ public EnsResponseVO<?> accept(){
niceCiParam.setSendType(IupSendTypeCd.NI.getCode()); final NiceCiDTO.NiceCiParam niceCiParam = NiceCiDTO.NiceCiParam.builder()
niceCiParam.setPrcsCd(IupPrcsCd.TGRG.getCode()); .sendType(IupSendTypeCd.NI.getCode())
.prcsCd(IupPrcsCd.TGRG.getCode())
.build();
final List<NiceCiDTO.InputXit> list = niceCiMapper.selectNiceCiAcceptTgts(niceCiParam); final List<NiceCiDTO.InputXit> list = niceCiMapper.selectNiceCiAcceptTgts(niceCiParam);
if(list.isEmpty()){ if(list.isEmpty()){

Loading…
Cancel
Save