|
|
|
@ -373,26 +373,17 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
AND C.CRDN_STTS_CD = '21'
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="by == 'crdnInptSeCd'">
|
|
|
|
|
AND FN_GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'crdnYmd'">
|
|
|
|
|
AND C.CRDN_YMD = REPLACE(#{term},'-','')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'vhrno'">
|
|
|
|
|
AND C.VHRNO LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'crdnStdgNm'">
|
|
|
|
|
AND C.CRDN_STDG_NM LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'aplcntCrdnNm'">
|
|
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'atchFileCnt'">
|
|
|
|
|
AND C.ATCH_FILE_CNT = #{term}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'crdnSn'">
|
|
|
|
|
AND C.CRDN_SN = #{term}
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
|
<include refid="dynamicSearch.start" />
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="by == 'crdnInptSeCd'">C.CRDN_INPT_SE_CD</when>
|
|
|
|
|
<when test="by == 'crdnYmd'">C.CRDN_YMD</when>
|
|
|
|
|
<when test="by == 'vhrno'">C.VHRNO</when>
|
|
|
|
|
<when test="by == 'crdnStdgNm'">C.CRDN_STDG_NM</when>
|
|
|
|
|
<when test="by == 'atchFileCnt'">C.ATCH_FILE_CNT</when>
|
|
|
|
|
<when test="by == 'crdnSn'">C.CRDN_SN</when>
|
|
|
|
|
</choose>
|
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
</otherwise>
|
|
|
|
@ -439,26 +430,18 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="by == 'rductYmd'">
|
|
|
|
|
AND SUBSTR(RD.REG_DT,1,8) = REPLACE(#{term},'-','')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'rductRsnCd'">
|
|
|
|
|
AND FN_GET_CODE_NM('FIM019', RD.RDUCT_RSN_CD) LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'crdnYmd'">
|
|
|
|
|
AND C.CRDN_YMD = REPLACE(#{term},'-','')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'vhrno'">
|
|
|
|
|
AND C.VHRNO = REPLACE(#{term},'-','')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'rductAmt'">
|
|
|
|
|
AND RD.RDUCT_AMT = REPLACE(#{term},',','')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'rductEtcCn'">
|
|
|
|
|
AND RD.ETC_CN LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'crdnSttsCd'">
|
|
|
|
|
AND FN_GET_CODE_NM('FIM010', C.CRDN_STTS_CD) LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
|
<include refid="dynamicSearch.start" />
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="by == 'rductYmd'">RD.REG_DT</when>
|
|
|
|
|
<when test="by == 'rductRsnCd'">RD.RDUCT_RSN_CD</when>
|
|
|
|
|
<when test="by == 'crdnYmd'">C.CRDN_YMD</when>
|
|
|
|
|
<when test="by == 'vhrno'">C.VHRNO</when>
|
|
|
|
|
<when test="by == 'rductAmt'">RD.RDUCT_AMT</when>
|
|
|
|
|
<when test="by == 'rductEtcCn'">RD.ETC_CN</when>
|
|
|
|
|
<when test="by == 'crdnSttsCd'">C.CRDN_STTS_CD</when>
|
|
|
|
|
</choose>
|
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
</otherwise>
|
|
|
|
|