From 7e598c22c6a0c6a80381d441db30fd77b37ecee5 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 24 Aug 2023 11:09:02 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=A9=ED=95=B4=EC=97=AC=EB=B6=80=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/fims/crdn/service/bean/ImportBean.java | 2 +- .../java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptBean.java | 2 +- .../cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/service/bean/ImportBean.java b/src/main/java/cokr/xit/fims/crdn/service/bean/ImportBean.java index cc804b33..f3114ffc 100644 --- a/src/main/java/cokr/xit/fims/crdn/service/bean/ImportBean.java +++ b/src/main/java/cokr/xit/fims/crdn/service/bean/ImportBean.java @@ -209,7 +209,7 @@ public class ImportBean extends AbstractComponent { CrdnCvlcpt cvlcpt = new CrdnCvlcpt(); cvlcpt.setCvlcptLinkId(petition.getInterfaceSeqN()); - cvlcpt.setDstrbncYn("03".equals(violation.getCode()) ? "Y" : "N"); + cvlcpt.setDstrbncYn("N"); String rcptYmd = parseDate.apply(petition.getAncRegD()); if (rcptYmd != null && rcptYmd.length() >= 8) cvlcpt.setCvlcptRcptYmd(rcptYmd.substring(0, 8)); diff --git a/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptBean.java b/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptBean.java index 97687439..5848236b 100644 --- a/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptBean.java +++ b/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptBean.java @@ -147,7 +147,7 @@ public class CrdnCvlcptBean extends AbstractComponent { crdnQuery.setAnsSeCd("3"); crdnQuery.setAnsRsnCd("3"+dataInfo.string("VLTN_CD")); - if(dataInfo.string("DSTRBNC_YN").equals("Y")) { + if(crdnQuery.getAnsRsnCd().equals("301") && dataInfo.string("DSTRBNC_YN").equals("Y")) { crdnQuery.setDstrbncYn("Y"); } diff --git a/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java b/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java index 8102adae..ea6526d2 100644 --- a/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java +++ b/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java @@ -389,7 +389,7 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv crdnQuery.setSggCd(globalStngMapper.selectSggCdForCurrentUser()); crdnQuery.setTaskSeCd(crdn.getTaskSeCd()); crdnQuery.setAnsRsnCd(ansRsnCd); - if(ifEmpty(crdnCvlcpt.getDstrbncYn(), () -> "").equals("Y")) { + if(crdn.getVltnCd().equals("01") && ifEmpty(crdnCvlcpt.getDstrbncYn(), () -> "").equals("Y")) { crdnQuery.setDstrbncYn("Y"); }