From 1d67de6931ad84062c1b9d02abf62e5068b6fdb3 Mon Sep 17 00:00:00 2001 From: jhseo Date: Thu, 11 Apr 2024 10:10:37 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=A0=91=EC=88=98=EC=8B=A4=ED=8C=A8(ac?= =?UTF-8?q?cept-fail)=20=EC=9E=90=EB=A3=8C=20=EC=82=AD=EC=A0=9C=20?= =?UTF-8?q?=EA=B8=B0=EB=8A=A5=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/kr/xit/biz/sisul/service/BizSisulService.java | 4 +++- .../egovframework/mapper/biz/ens-sisul-mysql-mapper.xml | 6 +++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/mens-api/src/main/java/kr/xit/biz/sisul/service/BizSisulService.java b/mens-api/src/main/java/kr/xit/biz/sisul/service/BizSisulService.java index 94fb2a7..81325ce 100644 --- a/mens-api/src/main/java/kr/xit/biz/sisul/service/BizSisulService.java +++ b/mens-api/src/main/java/kr/xit/biz/sisul/service/BizSisulService.java @@ -1265,7 +1265,9 @@ public class BizSisulService extends AbstractService implements IBizSisulService String rtnMsg = ""; final CntcDTO.SndngMst cntcDto = mapper.selectCntcMst(dto) .orElseThrow(() -> BizRuntimeException.create("접수 정보를 찾을 수 없습니다.")); - if(ApiConstants.SndngProcessStatus.ACCEPT.getCode().equals(cntcDto.getSndngProcessSttus())){ + if(ApiConstants.SndngProcessStatus.ACCEPT.getCode().equals(cntcDto.getSndngProcessSttus()) || + ApiConstants.SndngProcessStatus.ACCEPT_FAIL.getCode().equals(cntcDto.getSndngProcessSttus()) + ){ if(mapper.insertCntcMst(cntcDto) < 1) throw BizRuntimeException.create("접수 정보 백업(마스터) 실패"); if(mapper.deleteCntcMst(cntcDto) < 1) throw BizRuntimeException.create("접수 원본 삭제(마스터) 실패"); //CI가 없을 경우 오류 안 생기도록 처리 diff --git a/mens-api/src/main/resources/egovframework/mapper/biz/ens-sisul-mysql-mapper.xml b/mens-api/src/main/resources/egovframework/mapper/biz/ens-sisul-mysql-mapper.xml index 4781e1c..43058eb 100644 --- a/mens-api/src/main/resources/egovframework/mapper/biz/ens-sisul-mysql-mapper.xml +++ b/mens-api/src/main/resources/egovframework/mapper/biz/ens-sisul-mysql-mapper.xml @@ -193,7 +193,7 @@ , sndng_process_sttus as sndngProcessSttus FROM tb_cntc_sndng_mastr WHERE unity_sndng_mastr_id = #{unitySndngMastrId} - AND sndng_process_sttus = 'accept' + AND sndng_process_sttus in ('accept', 'accept-fail') @@ -227,7 +227,7 @@ tcsm.register from tb_cntc_sndng_mastr tcsm WHERE tcsm.unity_sndng_mastr_id = #{unitySndngMastrId} - AND tcsm.sndng_process_sttus = 'accept' + AND tcsm.sndng_process_sttus in ('accept', 'accept-fail') @@ -283,7 +283,7 @@ DELETE FROM tb_cntc_sndng_mastr WHERE unity_sndng_mastr_id = #{unitySndngMastrId} - AND sndng_process_sttus = 'accept' + AND sndng_process_sttus in ('accept', 'accept-fail')