|
|
|
@ -171,7 +171,44 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
|
AND C.CRDN_STTS_CD = '01'
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="by == 'crdnRegSeCd'">
|
|
|
|
|
AND FN_GET_CODE_NM('FIM026', C.CRDN_REG_SE_CD) LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'cvlcptAplcntNm'">
|
|
|
|
|
AND CC.CVLCPT_APLCNT_NM LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'cvlcptPrcsPicNm'">
|
|
|
|
|
AND CC.CVLCPT_PRCS_PIC_NM LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'cvlcptPrcsPicTelno'">
|
|
|
|
|
AND CC.CVLCPT_PRCS_PIC_TELNO LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'cvlcptRcptYmd'">
|
|
|
|
|
AND CC.CVLCPT_RCPT_YMD = REPLACE(#{term},'-','')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'cvlcptPrcsPrnmntDt'">
|
|
|
|
|
AND SUBSTR(CC.CVLCPT_PRCS_PRNMNT_DT,1,8) = REPLACE(#{term},'-','')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'crdnYmd'">
|
|
|
|
|
AND C.CRDN_YMD = REPLACE(#{term},'-','')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'atchFileCnt'">
|
|
|
|
|
AND C.ATCH_FILE_CNT = #{term}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'vltnArtcl'">
|
|
|
|
|
AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'cvlcptRcptNo'">
|
|
|
|
|
AND CC.CVLCPT_RCPT_NO LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'vhrno'">
|
|
|
|
|
AND C.VHRNO LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null">
|
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ >= ]]> #{schCvlcptRcptYmdFrom} </if>
|
|
|
|
|