From 8b80e4987e3e030083c0a5349da7f84e05b05bdd Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 25 Sep 2023 14:40:37 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A8=EC=86=8D=EC=9E=90=EB=A3=8C=20?= =?UTF-8?q?=EC=9E=85=EB=A0=A5=EC=8B=9C=20=EC=B4=88=EA=B8=B0=20=EC=83=81?= =?UTF-8?q?=ED=83=9C=EA=B0=92=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/crdn/service/bean/CrdnBean.java | 15 +++++++++------ .../WEB-INF/jsp/fims/crdn/crdn05020-info.jsp | 1 + 2 files changed, 10 insertions(+), 6 deletions(-) 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 @@ +