From 28939e52192c39bed7083575e2dd438c2f31a852 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 11 Sep 2023 17:10:03 +0900 Subject: [PATCH] =?UTF-8?q?=EC=86=8C=EC=8A=A4=EC=A0=95=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/base/UserController.java | 6 ++--- .../crdn/service/bean/CrdnServiceBean.java | 22 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/main/java/cokr/xit/fims/base/UserController.java b/src/main/java/cokr/xit/fims/base/UserController.java index 2c1d9bb0..cbbf4347 100644 --- a/src/main/java/cokr/xit/fims/base/UserController.java +++ b/src/main/java/cokr/xit/fims/base/UserController.java @@ -14,17 +14,17 @@ public class UserController extends cokr.xit.base.user.web.UserController "").equals("")) { - CrdnPayerHstry crdnPayerHstry = new CrdnPayerHstry(); - crdnPayerHstry.setCrdnId(crdn.getCrdnId()); - crdnPayerHstry.setRtpyrId(crdn.getRtpyrId()); - result = crdnPayerHstryBean.create(crdnPayerHstry); - if (!result) { - throw new RuntimeException("단속자료 수기 등록 중 단속납부자 이력 등록에 실패하였습니다."); - } - } - // 단속상태이력(TB_CRDN_STTS_HSTRY) 대장 등록 CrdnSttsHstry crdnSttsHstry = new CrdnSttsHstry(); crdnSttsHstry.setCrdnId(crdn.getCrdnId()); @@ -239,6 +228,17 @@ public class CrdnServiceBean extends AbstractServiceBean implements CrdnService throw new RuntimeException("단속자료 수기 등록 중 단속상태 이력 등록에 실패하였습니다."); } + //단속납부자이력(TB_CRDN_PAYER_HSTRY) 대장 등록 + if(!ifEmpty(crdn.getRtpyrId(), () -> "").equals("")) { + CrdnPayerHstry crdnPayerHstry = new CrdnPayerHstry(); + crdnPayerHstry.setCrdnId(crdn.getCrdnId()); + crdnPayerHstry.setRtpyrId(crdn.getRtpyrId()); + result = crdnPayerHstryBean.create(crdnPayerHstry); + if (!result) { + throw new RuntimeException("단속자료 수기 등록 중 단속납부자 이력 등록에 실패하였습니다."); + } + } + //파일 등록 if(fileInfoList != null && !fileInfoList.isEmpty()) { fileInfoList.forEach(fileInfo -> fileInfo.setInfoType(Crdn.INF_TYPE).setInfoKey(crdn.getCrdnId()));