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