|
|
|
@ -174,14 +174,18 @@ WHERE C.DEL_YN = 'N'
|
|
|
|
|
<if test="cvlcptPrcsPicNm != null">
|
|
|
|
|
AND CC.CVLCPT_PRCS_PIC_NM = #{cvlcptPrcsPicNm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateFrom != null or schDateTo != null">
|
|
|
|
|
<if test="schDateOpt == 'regDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
<if test="schCvlcptPrcsPrnmntDtFrom != null or schCvlcptPrcsPrnmntDtTo != null">
|
|
|
|
|
<if test="schCvlcptPrcsPrnmntDtFrom != null">AND CC.CVLCPT_PRCS_PRNMNT_DT <![CDATA[ >= ]]> #{schCvlcptPrcsPrnmntDtFrom} </if>
|
|
|
|
|
<if test="schCvlcptPrcsPrnmntDtTo != null">AND CC.CVLCPT_PRCS_PRNMNT_DT <![CDATA[ <= ]]> #{schCvlcptPrcsPrnmntDtTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateOpt == 'mdfcnDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
<if test="schRegDateFrom != null or schRegDateTo != null">
|
|
|
|
|
<if test="schRegDateOpt == 'regDt'">
|
|
|
|
|
<if test="schRegDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schRegDateFrom} </if>
|
|
|
|
|
<if test="schRegDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schRegDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRegDateOpt == 'mdfcnDt'">
|
|
|
|
|
<if test="schRegDateFrom != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schRegDateFrom} </if>
|
|
|
|
|
<if test="schRegDateTo != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schRegDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
@ -255,14 +259,18 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
<if test="cvlcptPrcsPicNm != null">
|
|
|
|
|
AND CC.CVLCPT_PRCS_PIC_NM = #{cvlcptPrcsPicNm}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateFrom != null or schDateTo != null">
|
|
|
|
|
<if test="schDateOpt == 'regDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
<if test="schCvlcptPrcsPrnmntDtFrom != null or schCvlcptPrcsPrnmntDtTo != null">
|
|
|
|
|
<if test="schCvlcptPrcsPrnmntDtFrom != null">AND CC.CVLCPT_PRCS_PRNMNT_DT <![CDATA[ >= ]]> #{schCvlcptPrcsPrnmntDtFrom} </if>
|
|
|
|
|
<if test="schCvlcptPrcsPrnmntDtTo != null">AND CC.CVLCPT_PRCS_PRNMNT_DT <![CDATA[ <= ]]> #{schCvlcptPrcsPrnmntDtTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRegDateFrom != null or schRegDateTo != null">
|
|
|
|
|
<if test="schRegDateOpt == 'regDt'">
|
|
|
|
|
<if test="schRegDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schRegDateFrom} </if>
|
|
|
|
|
<if test="schRegDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schRegDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateOpt == 'mdfcnDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
<if test="schRegDateOpt == 'mdfcnDt'">
|
|
|
|
|
<if test="schRegDateFrom != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schRegDateFrom} </if>
|
|
|
|
|
<if test="schRegDateTo != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schRegDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
@ -450,14 +458,18 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
<if test="schCvlcptRcptYmdTo != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ <= ]]> #{schCvlcptRcptYmdTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cvlcptPrcsCd != null">AND CC.CVLCPT_PRCS_CD = #{cvlcptPrcsCd}</if>
|
|
|
|
|
<if test="schDateFrom != null or schDateTo != null">
|
|
|
|
|
<if test="schDateOpt == 'regDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateOpt == 'mdfcnDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
<if test="schCvlcptPrcsPrnmntDtFrom != null or schCvlcptPrcsPrnmntDtTo != null">
|
|
|
|
|
<if test="schCvlcptPrcsPrnmntDtFrom != null">AND CC.CVLCPT_PRCS_PRNMNT_DT <![CDATA[ >= ]]> #{schCvlcptPrcsPrnmntDtFrom} </if>
|
|
|
|
|
<if test="schCvlcptPrcsPrnmntDtTo != null">AND CC.CVLCPT_PRCS_PRNMNT_DT <![CDATA[ <= ]]> #{schCvlcptPrcsPrnmntDtTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRegDateFrom != null or schRegDateTo != null">
|
|
|
|
|
<if test="schRegDateOpt == 'regDt'">
|
|
|
|
|
<if test="schRegDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schRegDateFrom} </if>
|
|
|
|
|
<if test="schRegDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schRegDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRegDateOpt == 'mdfcnDt'">
|
|
|
|
|
<if test="schRegDateFrom != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ >= ]]> #{schRegDateFrom} </if>
|
|
|
|
|
<if test="schRegDateTo != null">AND SUBSTR(C.MDFCN_DT,1,8) <![CDATA[ <= ]]> #{schRegDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|