diff --git a/src/main/java/cokr/xit/fims/crdn/CrdnQuery.java b/src/main/java/cokr/xit/fims/crdn/CrdnQuery.java index f907970e..b610382c 100644 --- a/src/main/java/cokr/xit/fims/crdn/CrdnQuery.java +++ b/src/main/java/cokr/xit/fims/crdn/CrdnQuery.java @@ -74,6 +74,7 @@ public class CrdnQuery extends CmmnQuery { private String cvlcptPrcsPicNm; private String teamNm; private String nxrpSendStts; + private String epayno; public String getGridType() { return ifEmpty(gridType, () -> null); @@ -444,4 +445,13 @@ public class CrdnQuery extends CmmnQuery { return self(); } + public String getEpayno() { + return ifEmpty(epayno, () -> null); + } + + public T setEpayno(String epayno) { + this.epayno = epayno; + return self(); + } + } diff --git a/src/main/resources/sql/mapper/fims/crdn/crdn-list-mapper.xml b/src/main/resources/sql/mapper/fims/crdn/crdn-list-mapper.xml index 23555325..a6ba8c1e 100644 --- a/src/main/resources/sql/mapper/fims/crdn/crdn-list-mapper.xml +++ b/src/main/resources/sql/mapper/fims/crdn/crdn-list-mapper.xml @@ -113,7 +113,7 @@ INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID) LEFT OUTER JOIN TB_TEAM T ON (CA.TEAM_ID = T.TEAM_ID) LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID) LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N') -LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID) +LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID AND L.DEL_YN = 'N') LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID) LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN) WHERE C.DEL_YN = 'N' @@ -137,6 +137,9 @@ AND C.CRDN_STTS_CD = #{crdnSttsCd} AND CA.TOWNG_YN = #{towngYn} + +AND L.EPAYNO = #{epayno} + AND C.REG_DT =]]> CONCAT(#{schRegDateFrom},'000000')