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