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