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 19f978f3..35100ed6 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 @@ -217,6 +217,16 @@ SELECT C.CRDN_ID AND C.CRDN_STTS_CD = #{crdnSttsCd} + + + AND SUBSTR(C.REG_DT,1,8) = ]]> #{schDateFrom} + AND SUBSTR(C.REG_DT,1,8) #{schDateTo} + + + AND SUBSTR(C.MDFCN_DT,1,8) = ]]> #{schDateFrom} + AND SUBSTR(C.MDFCN_DT,1,8) #{schDateTo} + + @@ -276,6 +286,16 @@ SELECT GROUP_CONCAT(C.CRDN_ID) AS CRDN_ID_LIST AND C.CRDN_STTS_CD = #{crdnSttsCd} + + + AND SUBSTR(C.REG_DT,1,8) = ]]> #{schDateFrom} + AND SUBSTR(C.REG_DT,1,8) #{schDateTo} + + + AND SUBSTR(C.MDFCN_DT,1,8) = ]]> #{schDateFrom} + AND SUBSTR(C.MDFCN_DT,1,8) #{schDateTo} + + GROUP BY C.VHRNO, C.CRDN_STDG_NM HAVING COUNT(*) = ]]>