From 544023fb593edc9cc95d87efcf7664f04c8b131a Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 14 Mar 2024 10:03:52 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A8=EC=86=8D=EC=9E=90=EB=A3=8C=EB=B3=84?= =?UTF-8?q?=20=EB=B0=9C=EC=86=A1=EC=83=81=EC=84=B8=EC=A0=95=EB=B3=B4=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EC=BF=BC=EB=A6=AC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fims/sprt/dao/IntegrationSearchMapper.java | 5 +++++ .../cokr/xit/fims/sprt/web/Sprt01Controller.java | 12 ++++++++++++ .../fims/sprt/integrationSearch-mapper.xml | 16 ++++++++++++++++ 3 files changed, 33 insertions(+) diff --git a/src/main/java/cokr/xit/fims/sprt/dao/IntegrationSearchMapper.java b/src/main/java/cokr/xit/fims/sprt/dao/IntegrationSearchMapper.java index 6a096c1c..3311b4a9 100644 --- a/src/main/java/cokr/xit/fims/sprt/dao/IntegrationSearchMapper.java +++ b/src/main/java/cokr/xit/fims/sprt/dao/IntegrationSearchMapper.java @@ -27,4 +27,9 @@ public interface IntegrationSearchMapper extends AbstractMapper { */ List selectIntegrationDataList(SprtQuery query); + /**지정한 단속 ID의 최근 발송상세정보를 조회한다.
+ * @param crdnId 단속 ID + * @return 발송 상세 정보 + */ + DataObject selectLatestSndngDtlInfo(String crdnId); } diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java index 8426edc7..ea44cfc1 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java @@ -776,6 +776,12 @@ public class Sprt01Controller extends ApplicationController { SprtQuery sprtQuery = new SprtQuery(); sprtQuery.setCrdnIds(crdnIds); List dataObjectList = integrationSearchMapper.selectIntegrationDataList(sprtQuery); + + for(int i=0; i < dataObjectList.size(); i++) { + DataObject sndngDtl = integrationSearchMapper.selectLatestSndngDtlInfo(dataObjectList.get(i).string("CRDN_ID")); + dataObjectList.get(i).set("RG_NO",sndngDtl.string("RG_NO")); + } + for(int i=0; i < dataObjectList.size(); i++) { DataObject dataObject = dataObjectList.get(i); @@ -945,6 +951,12 @@ public class Sprt01Controller extends ApplicationController { SprtQuery sprtQuery = new SprtQuery(); sprtQuery.setCrdnIds(crdnIds); List dataObjectList = integrationSearchMapper.selectIntegrationDataList(sprtQuery); + + for(int i=0; i < dataObjectList.size(); i++) { + DataObject sndngDtl = integrationSearchMapper.selectLatestSndngDtlInfo(dataObjectList.get(i).string("CRDN_ID")); + dataObjectList.get(i).set("RG_NO",sndngDtl.string("RG_NO")); + } + for(int i=0; i < dataObjectList.size(); i++) { DataObject dataObject = dataObjectList.get(i); diff --git a/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml b/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml index 999132f5..32370062 100644 --- a/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml +++ b/src/main/resources/sql/mapper/fims/sprt/integrationSearch-mapper.xml @@ -358,4 +358,20 @@ LEFT OUTER JOIN TB_RCVMT R ON (L.LEVY_ID = R.LEVY_ID AND R.DEL_YN = 'N + + + \ No newline at end of file