|
|
|
|
@ -119,6 +119,51 @@
|
|
|
|
|
<if test='schCrdnPrcsSttsCd != null and schCrdnPrcsSttsCd != ""'>
|
|
|
|
|
AND c.CRDN_PRCS_STTS_CD = #{schCrdnPrcsSttsCd}
|
|
|
|
|
</if>
|
|
|
|
|
<!-- 중요로직: 진행단계 코드에 따라 해당 일자 컬럼과 비교 -->
|
|
|
|
|
<if test='schPrcsSttsStartDt != null and schPrcsSttsStartDt != ""'>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "1"'>
|
|
|
|
|
AND c.DSPS_BFHD_BGNG_YMD <![CDATA[>=]]> REPLACE(#{schPrcsSttsStartDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "2"'>
|
|
|
|
|
AND c.CRC_CMD_BGNG_YMD <![CDATA[>=]]> REPLACE(#{schPrcsSttsStartDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "3"'>
|
|
|
|
|
AND c.CRC_URG_BGNG_YMD <![CDATA[>=]]> REPLACE(#{schPrcsSttsStartDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "4"'>
|
|
|
|
|
AND c.LEVY_PRVNTC_BGNG_YMD <![CDATA[>=]]> REPLACE(#{schPrcsSttsStartDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "5"'>
|
|
|
|
|
AND c.LEVY_BGNG_YMD <![CDATA[>=]]> REPLACE(#{schPrcsSttsStartDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "6"'>
|
|
|
|
|
AND c.PAY_URG_BGNG_YMD <![CDATA[>=]]> REPLACE(#{schPrcsSttsStartDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</if>
|
|
|
|
|
<if test='schPrcsSttsEndDt != null and schPrcsSttsEndDt != ""'>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "1"'>
|
|
|
|
|
AND c.DSPS_BFHD_END_YMD <![CDATA[<=]]> REPLACE(#{schPrcsSttsEndDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "2"'>
|
|
|
|
|
AND c.CRC_CMD_END_YMD <![CDATA[<=]]> REPLACE(#{schPrcsSttsEndDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "3"'>
|
|
|
|
|
AND c.CRC_URG_END_YMD <![CDATA[<=]]> REPLACE(#{schPrcsSttsEndDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "4"'>
|
|
|
|
|
AND c.LEVY_PRVNTC_END_YMD <![CDATA[<=]]> REPLACE(#{schPrcsSttsEndDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "5"'>
|
|
|
|
|
AND c.LEVY_END_YMD <![CDATA[<=]]> REPLACE(#{schPrcsSttsEndDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "6"'>
|
|
|
|
|
AND c.PAY_URG_END_YMD <![CDATA[<=]]> REPLACE(#{schPrcsSttsEndDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</if>
|
|
|
|
|
<if test='schAgrvtnLevyTrgtYn != null and schAgrvtnLevyTrgtYn != ""'>
|
|
|
|
|
AND c.AGRVTN_LEVY_TRGT_YN = #{schAgrvtnLevyTrgtYn}
|
|
|
|
|
</if>
|
|
|
|
|
@ -202,6 +247,51 @@
|
|
|
|
|
<if test='schCrdnPrcsSttsCd != null and schCrdnPrcsSttsCd != ""'>
|
|
|
|
|
AND c.CRDN_PRCS_STTS_CD = #{schCrdnPrcsSttsCd}
|
|
|
|
|
</if>
|
|
|
|
|
<!-- 중요로직: 진행단계 코드에 따라 해당 일자 컬럼과 비교 -->
|
|
|
|
|
<if test='schPrcsSttsStartDt != null and schPrcsSttsStartDt != ""'>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "1"'>
|
|
|
|
|
AND c.DSPS_BFHD_BGNG_YMD <![CDATA[>=]]> REPLACE(#{schPrcsSttsStartDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "2"'>
|
|
|
|
|
AND c.CRC_CMD_BGNG_YMD <![CDATA[>=]]> REPLACE(#{schPrcsSttsStartDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "3"'>
|
|
|
|
|
AND c.CRC_URG_BGNG_YMD <![CDATA[>=]]> REPLACE(#{schPrcsSttsStartDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "4"'>
|
|
|
|
|
AND c.LEVY_PRVNTC_BGNG_YMD <![CDATA[>=]]> REPLACE(#{schPrcsSttsStartDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "5"'>
|
|
|
|
|
AND c.LEVY_BGNG_YMD <![CDATA[>=]]> REPLACE(#{schPrcsSttsStartDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "6"'>
|
|
|
|
|
AND c.PAY_URG_BGNG_YMD <![CDATA[>=]]> REPLACE(#{schPrcsSttsStartDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</if>
|
|
|
|
|
<if test='schPrcsSttsEndDt != null and schPrcsSttsEndDt != ""'>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "1"'>
|
|
|
|
|
AND c.DSPS_BFHD_END_YMD <![CDATA[<=]]> REPLACE(#{schPrcsSttsEndDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "2"'>
|
|
|
|
|
AND c.CRC_CMD_END_YMD <![CDATA[<=]]> REPLACE(#{schPrcsSttsEndDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "3"'>
|
|
|
|
|
AND c.CRC_URG_END_YMD <![CDATA[<=]]> REPLACE(#{schPrcsSttsEndDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "4"'>
|
|
|
|
|
AND c.LEVY_PRVNTC_END_YMD <![CDATA[<=]]> REPLACE(#{schPrcsSttsEndDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "5"'>
|
|
|
|
|
AND c.LEVY_END_YMD <![CDATA[<=]]> REPLACE(#{schPrcsSttsEndDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
<when test='schCrdnPrcsSttsCd == "6"'>
|
|
|
|
|
AND c.PAY_URG_END_YMD <![CDATA[<=]]> REPLACE(#{schPrcsSttsEndDt}, '-', '')
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</if>
|
|
|
|
|
<if test='schAgrvtnLevyTrgtYn != null and schAgrvtnLevyTrgtYn != ""'>
|
|
|
|
|
AND c.AGRVTN_LEVY_TRGT_YN = #{schAgrvtnLevyTrgtYn}
|
|
|
|
|
</if>
|
|
|
|
|
|