diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnBean.java index b1ca2387..0e85d4f1 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/CrdnBean.java @@ -88,15 +88,18 @@ public class CrdnBean extends AbstractComponent { //TODO : 납부자정보ID,납부자명이 동일하고, 주소가 다를 때 주소업데이트 - if(ifEmpty(crdn.getCrdnSttsCd(), () -> "").equals("")){ - if(!ifEmpty(crdn.getRtpyrId(), () -> "").equals("")) { - crdn.setCrdnSttsCd("21"); - } else { - crdn.setCrdnSttsCd("01"); + if(ifEmpty(crdn.getCrdnSttsCd(), () -> "").equals("")){ //상태코드가 없을경우 + if(ifEmpty(crdn.getCvlcptLinkYn(), () -> "").equals("Y")) { //민원연계자료일 경우 + crdn.setCrdnSttsCd("01"); //초기상태 + } else { //민원연계자료가 아닐 경우 + if(ifEmpty(crdn.getRtpyrId(), () -> "").equals("")) { //납부자가 정보가 없을 경우 + crdn.setCrdnSttsCd("01"); + } else { + crdn.setCrdnSttsCd("21"); //납부자등록완료 + } } } - boolean result = this.createLedger(crdn); if (!result) { throw new RuntimeException("단속자료 등록 중 단속자료 등록에 실패하였습니다."); diff --git a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp index 85c1b8b0..e7da3e8e 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/crdn/crdn05020-info.jsp @@ -28,6 +28,7 @@ +