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()));