|
|
@ -83,94 +83,93 @@
|
|
|
|
<select id="selectSndngList" parameterType="map" resultType="dataobject">/* 발송 대장 목록 조회(sndngMapper.selectSndngList) */
|
|
|
|
<select id="selectSndngList" parameterType="map" resultType="dataobject">/* 발송 대장 목록 조회(sndngMapper.selectSndngList) */
|
|
|
|
<include refid="utility.paging-prefix" />
|
|
|
|
<include refid="utility.paging-prefix" />
|
|
|
|
<include refid="selectList" />
|
|
|
|
<include refid="selectList" />
|
|
|
|
WHERE S.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
<where>
|
|
|
|
AND S.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
<if test="schSndngYmdFrom != null">
|
|
|
|
<if test="schSndngYmdFrom != null">
|
|
|
|
|
|
|
|
AND S.SNDNG_YMD <![CDATA[>=]]> #{schSndngYmdFrom} <!-- 발송 일자 시작 -->
|
|
|
|
AND S.SNDNG_YMD <![CDATA[>=]]> #{schSndngYmdFrom} <!-- 발송 일자 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schSndngYmdTo != null">
|
|
|
|
<if test="schSndngYmdTo != null">
|
|
|
|
AND S.SNDNG_YMD <![CDATA[<=]]> #{schSndngYmdTo} <!-- 발송 일자 종료 -->
|
|
|
|
AND S.SNDNG_YMD <![CDATA[<=]]> #{schSndngYmdTo} <!-- 발송 일자 종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schSndngRegSeCd != null">
|
|
|
|
<if test="schSndngRegSeCd != null">
|
|
|
|
AND S.SNDNG_REG_SE_CD = #{schSndngRegSeCd} <!-- 발송 등록 구분 코드 -->
|
|
|
|
AND S.SNDNG_REG_SE_CD = #{schSndngRegSeCd} <!-- 발송 등록 구분 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schSndngSeCd != null">
|
|
|
|
<if test="schSndngSeCd != null">
|
|
|
|
AND S.SNDNG_SE_CD = #{schSndngSeCd} <!-- 발송 구분 코드 -->
|
|
|
|
AND S.SNDNG_SE_CD = #{schSndngSeCd} <!-- 발송 구분 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="sndngSeCd != null">
|
|
|
|
<if test="sndngSeCd != null">
|
|
|
|
AND S.SNDNG_SE_CD = #{sndngSeCd} <!-- 발송 구분 코드 -->
|
|
|
|
AND S.SNDNG_SE_CD = #{sndngSeCd} <!-- 발송 구분 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="sndngSeCdFrom != null">
|
|
|
|
<if test="sndngSeCdFrom != null">
|
|
|
|
AND S.SNDNG_SE_CD <![CDATA[>=]]> #{sndngSeCdFrom} <!-- 발송 구분 코드 시작 -->
|
|
|
|
AND S.SNDNG_SE_CD <![CDATA[>=]]> #{sndngSeCdFrom} <!-- 발송 구분 코드 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="sndngSeCdTo != null">
|
|
|
|
<if test="sndngSeCdTo != null">
|
|
|
|
AND S.SNDNG_SE_CD <![CDATA[<=]]> #{sndngSeCdTo} <!-- 발송 구분 코드 종료 -->
|
|
|
|
AND S.SNDNG_SE_CD <![CDATA[<=]]> #{sndngSeCdTo} <!-- 발송 구분 코드 종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<choose>
|
|
|
|
<if test="sggCd != null">
|
|
|
|
<when test="schRegDateOpt == 'regDt'">
|
|
|
|
AND S.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="taskSeCd != null">
|
|
|
|
|
|
|
|
AND S.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
AND S.DEL_YN = 'N' <!-- 삭제 여부 -->
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="schRegDateOpt == 'regDt'">
|
|
|
|
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
AND S.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 -->
|
|
|
|
AND S.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
AND S.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 -->
|
|
|
|
AND S.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<when test="schRegDateOpt == 'mdfcnDt'">
|
|
|
|
<when test="schRegDateOpt == 'mdfcnDt'">
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
AND S.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
|
|
|
|
AND S.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
AND S.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
|
|
|
|
AND S.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<otherwise>
|
|
|
|
<otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</choose>
|
|
|
|
</choose>
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
|
<when test="schRgtrOpt == 'rgtr'">
|
|
|
|
<when test="schRgtrOpt == 'rgtr'">
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
AND S.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
|
|
|
|
AND S.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<when test="schRgtrOpt == 'mdfr'">
|
|
|
|
<when test="schRgtrOpt == 'mdfr'">
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
AND S.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
|
|
|
|
AND S.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<otherwise>
|
|
|
|
|
|
|
|
</otherwise>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="delYn != null">
|
|
|
|
|
|
|
|
AND S.DEL_YN = #{delYn} <!-- 삭제 여부 -->
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<otherwise>
|
|
|
|
|
|
|
|
AND S.DEL_YN = 'N' <!-- 삭제 여부 -->
|
|
|
|
|
|
|
|
</otherwise>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
|
|
|
|
<include refid="dynamicSearch.start" />
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="by == 'taskSeCd'"> S.TASK_SE_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'sndngRegSeCd'"> S.SNDNG_REG_SE_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'sndngSeCd'"> S.SNDNG_SE_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'sndngYmd'"> S.SNDNG_YMD </when>
|
|
|
|
|
|
|
|
<when test="by == 'dudtYmd'"> S.DUDT_YMD </when>
|
|
|
|
|
|
|
|
<when test="by == 'ttlNm'"> S.TTL_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'docNo'"> S.DOC_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'etcCn'"> S.ETC_CN </when>
|
|
|
|
|
|
|
|
<when test="by == 'tnocs'"> S.TNOCS </when>
|
|
|
|
|
|
|
|
<when test="by == 'gramt'"> S.GRAMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'sndngSttsCd'"> S.SNDNG_STTS_CD </when>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<otherwise>
|
|
|
|
<otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</choose>
|
|
|
|
</choose>
|
|
|
|
</if>
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
|
|
|
|
<include refid="dynamicSearch.start" />
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="by == 'taskSeCd'"> S.TASK_SE_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'sndngRegSeCd'"> S.SNDNG_REG_SE_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'sndngSeCd'"> S.SNDNG_SE_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'sndngYmd'"> S.SNDNG_YMD </when>
|
|
|
|
|
|
|
|
<when test="by == 'dudtYmd'"> S.DUDT_YMD </when>
|
|
|
|
|
|
|
|
<when test="by == 'ttlNm'"> S.TTL_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'docNo'"> S.DOC_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'etcCn'"> S.ETC_CN </when>
|
|
|
|
|
|
|
|
<when test="by == 'tnocs'"> S.TNOCS </when>
|
|
|
|
|
|
|
|
<when test="by == 'gramt'"> S.GRAMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'sndngSttsCd'"> S.SNDNG_STTS_CD </when>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<otherwise>
|
|
|
|
|
|
|
|
</otherwise>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
<include refid="utility.paging-suffix" />
|
|
|
|
<include refid="utility.paging-suffix" />
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
@ -278,128 +277,134 @@
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
|
|
|
|
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
|
|
|
|
WHERE C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
<where>
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
<if test="crdnIds != null">
|
|
|
|
<if test="crdnIds != null">
|
|
|
|
|
|
|
|
AND C.CRDN_ID IN (
|
|
|
|
AND C.CRDN_ID IN (
|
|
|
|
<foreach collection="crdnIds" item="crdnId" separator=","> #{crdnId} </foreach> <!-- 단속 Ids -->
|
|
|
|
<foreach collection="crdnIds" item="crdnId" separator=","> #{crdnId} </foreach> <!-- 단속 Ids -->
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="crdnId != null">
|
|
|
|
<if test="crdnId != null">
|
|
|
|
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
|
|
|
|
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="crdnSttsCd != null">
|
|
|
|
<if test="crdnSttsCd != null">
|
|
|
|
AND C.CRDN_STTS_CD = #{crdnSttsCd} <!-- 단속 상태 코드 -->
|
|
|
|
AND C.CRDN_STTS_CD = #{crdnSttsCd} <!-- 단속 상태 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schLevyExclYmdFrom != null">
|
|
|
|
<if test="schLevyExclYmdFrom != null">
|
|
|
|
AND LE.LEVY_EXCL_YMD <![CDATA[>=]]> #{schLevyExclYmdFrom} <!-- 부과제외 일자 시작 -->
|
|
|
|
AND LE.LEVY_EXCL_YMD <![CDATA[>=]]> #{schLevyExclYmdFrom} <!-- 부과제외 일자 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schLevyExclYmdTo != null">
|
|
|
|
<if test="schLevyExclYmdTo != null">
|
|
|
|
AND LE.LEVY_EXCL_YMD <![CDATA[<=]]> #{schLevyExclYmdTo} <!-- 부과제외 일자 종료 -->
|
|
|
|
AND LE.LEVY_EXCL_YMD <![CDATA[<=]]> #{schLevyExclYmdTo} <!-- 부과제외 일자 종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schLevyExclRsnCd != null">
|
|
|
|
<if test="schLevyExclRsnCd != null">
|
|
|
|
AND LE.LEVY_EXCL_RSN_CD <![CDATA[<=]]> #{schLevyExclRsnCd} <!-- 부과제외 사유 코드 -->
|
|
|
|
AND LE.LEVY_EXCL_RSN_CD <![CDATA[<=]]> #{schLevyExclRsnCd} <!-- 부과제외 사유 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schCrdnYmdFrom != null">
|
|
|
|
<if test="schCrdnYmdFrom != null">
|
|
|
|
AND C.CRDN_YMD <![CDATA[>=]]> #{schCrdnYmdFrom} <!-- 단속 일자 시작 -->
|
|
|
|
AND C.CRDN_YMD <![CDATA[>=]]> #{schCrdnYmdFrom} <!-- 단속 일자 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schCrdnYmdTo != null">
|
|
|
|
<if test="schCrdnYmdTo != null">
|
|
|
|
AND C.CRDN_YMD <![CDATA[<=]]> #{schCrdnYmdTo} <!-- 단속 일자 종료 -->
|
|
|
|
AND C.CRDN_YMD <![CDATA[<=]]> #{schCrdnYmdTo} <!-- 단속 일자 종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schVhrno != null">
|
|
|
|
<if test="schVhrno != null">
|
|
|
|
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
|
|
|
|
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schRtpyrNo != null">
|
|
|
|
<if test="schRtpyrNo != null">
|
|
|
|
AND P.RTPYR_NO = #{schRtpyrNo} <!-- 납부자 번호 -->
|
|
|
|
AND P.RTPYR_NO = #{schRtpyrNo} <!-- 납부자 번호 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schRtpyrNm != null">
|
|
|
|
<if test="schRtpyrNm != null">
|
|
|
|
AND P.RTPYR_NM = #{schRtpyrNm} <!-- 납부자 명 -->
|
|
|
|
AND P.RTPYR_NM = #{schRtpyrNm} <!-- 납부자 명 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="sggCd != null">
|
|
|
|
|
|
|
|
AND C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="taskSeCd != null">
|
|
|
|
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
|
|
|
|
</if>
|
|
|
|
AND C.DEL_YN = 'N' <!-- 삭제 여부 -->
|
|
|
|
AND C.DEL_YN = 'N' <!-- 삭제 여부 -->
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
|
<when test="schRegDateOpt == 'regDt'">
|
|
|
|
<when test="schRegDateOpt == 'regDt'">
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
AND LE.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 -->
|
|
|
|
AND LE.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
AND LE.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 -->
|
|
|
|
AND LE.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<when test="schRegDateOpt == 'mdfcnDt'">
|
|
|
|
<when test="schRegDateOpt == 'mdfcnDt'">
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
AND LE.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
|
|
|
|
AND LE.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
AND LE.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
|
|
|
|
AND LE.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<otherwise>
|
|
|
|
<otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</choose>
|
|
|
|
</choose>
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
|
<when test="schRgtrOpt == 'rgtr'">
|
|
|
|
<when test="schRgtrOpt == 'rgtr'">
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
AND LE.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
|
|
|
|
AND LE.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<when test="schRgtrOpt == 'mdfr'">
|
|
|
|
<when test="schRgtrOpt == 'mdfr'">
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
AND LE.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
|
|
|
|
AND LE.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<otherwise>
|
|
|
|
|
|
|
|
</otherwise>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
|
|
|
|
<include refid="dynamicSearch.start" />
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="by == 'crdnRegSeCd'"> C.CRDN_REG_SE_CD </when>
|
|
|
|
|
|
|
|
<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 == 'crdnRoadNm'"> C.CRDN_ROAD_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnPlc'"> C.CRDN_PLC </when>
|
|
|
|
|
|
|
|
<when test="by == 'ffnlgCrdnAmt'"> C.FFNLG_CRDN_AMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'ffnlgAmt'"> C.FFNLG_AMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'advntceAmt'"> C.ADVNTCE_AMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'opnnSbmsnYn'"> C.OPNN_SBMSN_YN </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSttsCd'"> C.CRDN_STTS_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSeCd'"> CA.CRDN_SE_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'dtlCrdnPlc'"> CA.DTL_CRDN_PLC </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSpareaCd'"> CA.CRDN_SPAREA_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnBgngTm'"> CA.CRDN_BGNG_TM </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnEndTm'"> CA.CRDN_END_TM </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSn'"> CA.CRDN_SN </when>
|
|
|
|
|
|
|
|
<when test="by == 'useFuelCd'"> CA.USE_FUEL_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'ffnlgCarmdlCd'"> CA.FFNLG_CARMDL_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'parkngPsbltyRsltCd'"> CA.PARKNG_PSBLTY_RSLT_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'vltnNmtm'"> CA.VLTN_NMTM </when>
|
|
|
|
|
|
|
|
<when test="by == 'ovtimeYn'"> CA.OVTIME_YN </when>
|
|
|
|
|
|
|
|
<when test="by == 'vltnArtcl'"> V.VLTN_ARTCL </when>
|
|
|
|
|
|
|
|
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'zip'"> PA.ZIP </when>
|
|
|
|
|
|
|
|
<when test="by == 'addr'"> PA.ADDR </when>
|
|
|
|
|
|
|
|
<when test="by == 'dtlAddr'"> PA.DTL_ADDR </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptAplyNo'"> CC.CVLCPT_APLY_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptRcptNo'"> CC.CVLCPT_RCPT_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptRcptYmd'"> CC.CVLCPT_RCPT_YMD </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptPrcsPicNm'"> CC.CVLCPT_PRCS_PIC_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptPrcsCd'"> CC.CVLCPT_PRCS_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptTrsmCd'"> CC.CVLCPT_TRSM_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'levyExclYmd'"> LE.LEVY_EXCL_YMD </when>
|
|
|
|
|
|
|
|
<when test="by == 'levyExclRsnCd'"> LE.LEVY_EXCL_RSN_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'etcCn'"> LE.ETC_CN </when>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<otherwise>
|
|
|
|
<otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</choose>
|
|
|
|
</choose>
|
|
|
|
</if>
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
|
|
|
|
<include refid="dynamicSearch.start" />
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="by == 'crdnRegSeCd'"> C.CRDN_REG_SE_CD </when>
|
|
|
|
|
|
|
|
<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 == 'crdnRoadNm'"> C.CRDN_ROAD_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnPlc'"> C.CRDN_PLC </when>
|
|
|
|
|
|
|
|
<when test="by == 'ffnlgCrdnAmt'"> C.FFNLG_CRDN_AMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'ffnlgAmt'"> C.FFNLG_AMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'advntceAmt'"> C.ADVNTCE_AMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'opnnSbmsnYn'"> C.OPNN_SBMSN_YN </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSttsCd'"> C.CRDN_STTS_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSeCd'"> CA.CRDN_SE_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'dtlCrdnPlc'"> CA.DTL_CRDN_PLC </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSpareaCd'"> CA.CRDN_SPAREA_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnBgngTm'"> CA.CRDN_BGNG_TM </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnEndTm'"> CA.CRDN_END_TM </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSn'"> CA.CRDN_SN </when>
|
|
|
|
|
|
|
|
<when test="by == 'useFuelCd'"> CA.USE_FUEL_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'ffnlgCarmdlCd'"> CA.FFNLG_CARMDL_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'parkngPsbltyRsltCd'"> CA.PARKNG_PSBLTY_RSLT_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'vltnNmtm'"> CA.VLTN_NMTM </when>
|
|
|
|
|
|
|
|
<when test="by == 'ovtimeYn'"> CA.OVTIME_YN </when>
|
|
|
|
|
|
|
|
<when test="by == 'vltnArtcl'"> V.VLTN_ARTCL </when>
|
|
|
|
|
|
|
|
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'zip'"> PA.ZIP </when>
|
|
|
|
|
|
|
|
<when test="by == 'addr'"> PA.ADDR </when>
|
|
|
|
|
|
|
|
<when test="by == 'dtlAddr'"> PA.DTL_ADDR </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptAplyNo'"> CC.CVLCPT_APLY_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptRcptNo'"> CC.CVLCPT_RCPT_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptRcptYmd'"> CC.CVLCPT_RCPT_YMD </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptPrcsPicNm'"> CC.CVLCPT_PRCS_PIC_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptPrcsCd'"> CC.CVLCPT_PRCS_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptTrsmCd'"> CC.CVLCPT_TRSM_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'levyExclYmd'"> LE.LEVY_EXCL_YMD </when>
|
|
|
|
|
|
|
|
<when test="by == 'levyExclRsnCd'"> LE.LEVY_EXCL_RSN_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'etcCn'"> LE.ETC_CN </when>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<otherwise>
|
|
|
|
|
|
|
|
</otherwise>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectWrngTrgtList" parameterType="map" resultType="dataobject">/* 계고장 발송 대상 목록 조회(sndngMapper.selectWrngTrgtList) */
|
|
|
|
<select id="selectWrngTrgtList" parameterType="map" resultType="dataobject">/* 계고장 발송 대상 목록 조회(sndngMapper.selectWrngTrgtList) */
|
|
|
@ -497,121 +502,127 @@
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CVLCPT_LINK_YN = 'Y' AND CC.DEL_YN = 'N')
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
WHERE C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
<where>
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
<if test="crdnIds != null">
|
|
|
|
AND (CC.CVLCPT_PRCS_CD IS NULL OR CC.CVLCPT_PRCS_CD <![CDATA[ <> ]]> '00') <!-- 민원 처리 코드 -->
|
|
|
|
|
|
|
|
<if test="crdnIds != null">
|
|
|
|
|
|
|
|
AND C.CRDN_ID IN ( <!-- 단속 Ids -->
|
|
|
|
AND C.CRDN_ID IN ( <!-- 단속 Ids -->
|
|
|
|
<foreach collection="crdnIds" item="crdnId" separator=","> #{crdnId} </foreach>
|
|
|
|
<foreach collection="crdnIds" item="crdnId" separator=","> #{crdnId} </foreach>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="crdnId != null">
|
|
|
|
<if test="crdnId != null">
|
|
|
|
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
|
|
|
|
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="crdnSttsCdFrom != null">
|
|
|
|
<if test="crdnSttsCdFrom != null">
|
|
|
|
AND C.CRDN_STTS_CD <![CDATA[>=]]> #{crdnSttsCdFrom} <!-- 단속 상태 코드 시작 -->
|
|
|
|
AND C.CRDN_STTS_CD <![CDATA[>=]]> #{crdnSttsCdFrom} <!-- 단속 상태 코드 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="crdnSttsCdTo != null">
|
|
|
|
<if test="crdnSttsCdTo != null">
|
|
|
|
AND C.CRDN_STTS_CD <![CDATA[<=]]> #{crdnSttsCdTo} <!-- 단속 상태 코드 종료 -->
|
|
|
|
AND C.CRDN_STTS_CD <![CDATA[<=]]> #{crdnSttsCdTo} <!-- 단속 상태 코드 종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schCrdnYmdFrom != null">
|
|
|
|
<if test="schCrdnYmdFrom != null">
|
|
|
|
AND C.CRDN_YMD <![CDATA[>=]]> #{schCrdnYmdFrom} <!-- 단속 일자 시작 -->
|
|
|
|
AND C.CRDN_YMD <![CDATA[>=]]> #{schCrdnYmdFrom} <!-- 단속 일자 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schCrdnYmdTo != null">
|
|
|
|
<if test="schCrdnYmdTo != null">
|
|
|
|
AND C.CRDN_YMD <![CDATA[<=]]> #{schCrdnYmdTo} <!-- 단속 일자 종료 -->
|
|
|
|
AND C.CRDN_YMD <![CDATA[<=]]> #{schCrdnYmdTo} <!-- 단속 일자 종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schVltnCd != null">
|
|
|
|
<if test="schVltnCd != null">
|
|
|
|
AND V.VLTN_CD = #{schVltnCd} <!-- 위반 코드 -->
|
|
|
|
AND V.VLTN_CD = #{schVltnCd} <!-- 위반 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schVhrno != null">
|
|
|
|
<if test="schVhrno != null">
|
|
|
|
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
|
|
|
|
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schRtpyrNm != null">
|
|
|
|
<if test="schRtpyrNm != null">
|
|
|
|
AND P.RTPYR_NM = #{schRtpyrNm}<!-- 납부자 명 -->
|
|
|
|
AND P.RTPYR_NM = #{schRtpyrNm}<!-- 납부자 명 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="sggCd != null">
|
|
|
|
|
|
|
|
AND C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="taskSeCd != null">
|
|
|
|
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
AND (CC.CVLCPT_PRCS_CD IS NULL OR CC.CVLCPT_PRCS_CD <![CDATA[ <> ]]> '00') <!-- 민원 처리 코드 -->
|
|
|
|
AND C.DEL_YN = 'N' <!-- 삭제 여부 -->
|
|
|
|
AND C.DEL_YN = 'N' <!-- 삭제 여부 -->
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
|
<when test="schRegDateOpt == 'regDt'">
|
|
|
|
<when test="schRegDateOpt == 'regDt'">
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
AND C.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 -->
|
|
|
|
AND C.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
AND C.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 -->
|
|
|
|
AND C.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<when test="schRegDateOpt == 'mdfcnDt'">
|
|
|
|
<when test="schRegDateOpt == 'mdfcnDt'">
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
AND C.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
|
|
|
|
AND C.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
AND C.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
|
|
|
|
AND C.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<otherwise>
|
|
|
|
<otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</choose>
|
|
|
|
</choose>
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
|
<when test="schRgtrOpt == 'rgtr'">
|
|
|
|
<when test="schRgtrOpt == 'rgtr'">
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
AND C.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
|
|
|
|
AND C.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<when test="schRgtrOpt == 'mdfr'">
|
|
|
|
<when test="schRgtrOpt == 'mdfr'">
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
AND C.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
|
|
|
|
AND C.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<otherwise>
|
|
|
|
|
|
|
|
</otherwise>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
|
|
|
|
<include refid="dynamicSearch.start" />
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="by == 'crdnRegSeCd'"> C.CRDN_REG_SE_CD </when>
|
|
|
|
|
|
|
|
<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 == 'crdnRoadNm'"> C.CRDN_ROAD_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnPlc'"> C.CRDN_PLC </when>
|
|
|
|
|
|
|
|
<when test="by == 'ffnlgCrdnAmt'"> C.FFNLG_CRDN_AMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'ffnlgAmt'"> C.FFNLG_AMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'advntceAmt'"> C.ADVNTCE_AMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'opnnSbmsnYn'"> C.OPNN_SBMSN_YN </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSttsCd'"> C.CRDN_STTS_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSeCd'"> CA.CRDN_SE_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'dtlCrdnPlc'"> CA.DTL_CRDN_PLC </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSpareaCd'"> CA.CRDN_SPAREA_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnBgngTm'"> CA.CRDN_BGNG_TM </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnEndTm'"> CA.CRDN_END_TM </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSn'"> CA.CRDN_SN </when>
|
|
|
|
|
|
|
|
<when test="by == 'useFuelCd'"> CA.USE_FUEL_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'ffnlgCarmdlCd'"> CA.FFNLG_CARMDL_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'parkngPsbltyRsltCd'"> CA.PARKNG_PSBLTY_RSLT_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'vltnNmtm'"> CA.VLTN_NMTM </when>
|
|
|
|
|
|
|
|
<when test="by == 'ovtimeYn'"> CA.OVTIME_YN </when>
|
|
|
|
|
|
|
|
<when test="by == 'vltnArtcl'"> V.VLTN_ARTCL </when>
|
|
|
|
|
|
|
|
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'rtpyrBrdt'"> P.RTPYR_BRDT </when>
|
|
|
|
|
|
|
|
<when test="by == 'zip'"> PA.ZIP </when>
|
|
|
|
|
|
|
|
<when test="by == 'addr'"> PA.ADDR </when>
|
|
|
|
|
|
|
|
<when test="by == 'dtlAddr'"> PA.DTL_ADDR </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptAplyNo'"> CC.CVLCPT_APLY_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptRcptNo'"> CC.CVLCPT_RCPT_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptRcptYmd'"> CC.CVLCPT_RCPT_YMD </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptPrcsPicNm'"> CC.CVLCPT_PRCS_PIC_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptPrcsCd'"> CC.CVLCPT_PRCS_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptTrsmCd'"> CC.CVLCPT_TRSM_CD </when>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
|
|
|
|
</when>
|
|
|
|
</when>
|
|
|
|
<otherwise>
|
|
|
|
<otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</otherwise>
|
|
|
|
</choose>
|
|
|
|
</choose>
|
|
|
|
</if>
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
|
|
|
|
<include refid="dynamicSearch.start" />
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="by == 'crdnRegSeCd'"> C.CRDN_REG_SE_CD </when>
|
|
|
|
|
|
|
|
<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 == 'crdnRoadNm'"> C.CRDN_ROAD_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnPlc'"> C.CRDN_PLC </when>
|
|
|
|
|
|
|
|
<when test="by == 'ffnlgCrdnAmt'"> C.FFNLG_CRDN_AMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'ffnlgAmt'"> C.FFNLG_AMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'advntceAmt'"> C.ADVNTCE_AMT </when>
|
|
|
|
|
|
|
|
<when test="by == 'opnnSbmsnYn'"> C.OPNN_SBMSN_YN </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSttsCd'"> C.CRDN_STTS_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSeCd'"> CA.CRDN_SE_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'dtlCrdnPlc'"> CA.DTL_CRDN_PLC </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSpareaCd'"> CA.CRDN_SPAREA_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnBgngTm'"> CA.CRDN_BGNG_TM </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnEndTm'"> CA.CRDN_END_TM </when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnSn'"> CA.CRDN_SN </when>
|
|
|
|
|
|
|
|
<when test="by == 'useFuelCd'"> CA.USE_FUEL_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'ffnlgCarmdlCd'"> CA.FFNLG_CARMDL_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'parkngPsbltyRsltCd'"> CA.PARKNG_PSBLTY_RSLT_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'vltnNmtm'"> CA.VLTN_NMTM </when>
|
|
|
|
|
|
|
|
<when test="by == 'ovtimeYn'"> CA.OVTIME_YN </when>
|
|
|
|
|
|
|
|
<when test="by == 'vltnArtcl'"> V.VLTN_ARTCL </when>
|
|
|
|
|
|
|
|
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'rtpyrBrdt'"> P.RTPYR_BRDT </when>
|
|
|
|
|
|
|
|
<when test="by == 'zip'"> PA.ZIP </when>
|
|
|
|
|
|
|
|
<when test="by == 'addr'"> PA.ADDR </when>
|
|
|
|
|
|
|
|
<when test="by == 'dtlAddr'"> PA.DTL_ADDR </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptAplyNo'"> CC.CVLCPT_APLY_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptRcptNo'"> CC.CVLCPT_RCPT_NO </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptRcptYmd'"> CC.CVLCPT_RCPT_YMD </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptPrcsPicNm'"> CC.CVLCPT_PRCS_PIC_NM </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptPrcsCd'"> CC.CVLCPT_PRCS_CD </when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptTrsmCd'"> CC.CVLCPT_TRSM_CD </when>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<otherwise>
|
|
|
|
|
|
|
|
</otherwise>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectAdvntceTrgtList" parameterType="map" resultType="dataobject">/* 사전통지 발송 대상 목록 조회(sndngMapper.selectAdvntceSndngTrgtList) */
|
|
|
|
<select id="selectAdvntceTrgtList" parameterType="map" resultType="dataobject">/* 사전통지 발송 대상 목록 조회(sndngMapper.selectAdvntceSndngTrgtList) */
|
|
|
@ -679,44 +690,50 @@
|
|
|
|
INNER JOIN TB_CRDN C ON (L.CRDN_ID = C.CRDN_ID)
|
|
|
|
INNER JOIN TB_CRDN C ON (L.CRDN_ID = C.CRDN_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
WHERE L.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
<where>
|
|
|
|
AND L.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
<if test="levyIds != null">
|
|
|
|
<if test="levyIds != null">
|
|
|
|
|
|
|
|
AND L.LEVY_ID IN ( <!-- 부과 Ids -->
|
|
|
|
AND L.LEVY_ID IN ( <!-- 부과 Ids -->
|
|
|
|
<foreach collection="levyIds" item="levyId" separator=","> #{levyId} </foreach>
|
|
|
|
<foreach collection="levyIds" item="levyId" separator=","> #{levyId} </foreach>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="levyId != null">
|
|
|
|
<if test="levyId != null">
|
|
|
|
AND L.LEVY_ID = #{levyId} <!-- 부과 ID -->
|
|
|
|
AND L.LEVY_ID = #{levyId} <!-- 부과 ID -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="crdnIds != null">
|
|
|
|
<if test="crdnIds != null">
|
|
|
|
AND C.CRDN_ID IN ( <!-- 단속 Ids -->
|
|
|
|
AND C.CRDN_ID IN ( <!-- 단속 Ids -->
|
|
|
|
<foreach collection="crdnIds" item="crdnId" separator=","> #{crdnId} </foreach>
|
|
|
|
<foreach collection="crdnIds" item="crdnId" separator=","> #{crdnId} </foreach>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="crdnId != null">
|
|
|
|
<if test="crdnId != null">
|
|
|
|
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
|
|
|
|
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schVltnCd != null">
|
|
|
|
<if test="schVltnCd != null">
|
|
|
|
AND V.VLTN_CD = #{schVltnCd} <!-- 위반 코드 -->
|
|
|
|
AND V.VLTN_CD = #{schVltnCd} <!-- 위반 코드 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schLevyYmd != null">
|
|
|
|
<if test="schLevyYmd != null">
|
|
|
|
AND L.LEVY_YMD = #{schLevyYmd} <!-- 부과 일자 -->
|
|
|
|
AND L.LEVY_YMD = #{schLevyYmd} <!-- 부과 일자 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schFrstDudtYmd != null">
|
|
|
|
<if test="schFrstDudtYmd != null">
|
|
|
|
AND L.FRST_DUDT_YMD = #{schFrstDudtYmd} <!-- 최초 납기 일자 -->
|
|
|
|
AND L.FRST_DUDT_YMD = #{schFrstDudtYmd} <!-- 최초 납기 일자 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schFyr != null">
|
|
|
|
<if test="schFyr != null">
|
|
|
|
AND L.FYR = #{schFyr} <!-- 회계연도 -->
|
|
|
|
AND L.FYR = #{schFyr} <!-- 회계연도 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schLevyNoFrom != null">
|
|
|
|
<if test="schLevyNoFrom != null">
|
|
|
|
AND L.LEVY_NO <![CDATA[>=]]> #{schLevyNoFrom} <!-- 부과 번호 시작 -->
|
|
|
|
AND L.LEVY_NO <![CDATA[>=]]> #{schLevyNoFrom} <!-- 부과 번호 시작 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schLevyNoTo != null">
|
|
|
|
<if test="schLevyNoTo != null">
|
|
|
|
AND L.LEVY_NO <![CDATA[<=]]> #{schLevyNoTo} <!-- 부과 번호종료 -->
|
|
|
|
AND L.LEVY_NO <![CDATA[<=]]> #{schLevyNoTo} <!-- 부과 번호종료 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="sggCd != null">
|
|
|
|
|
|
|
|
AND L.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="taskSeCd != null">
|
|
|
|
|
|
|
|
AND L.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
|
|
|
|
</if>
|
|
|
|
AND L.DEL_YN = 'N' <!-- 삭제 여부 -->
|
|
|
|
AND L.DEL_YN = 'N' <!-- 삭제 여부 -->
|
|
|
|
AND C.DEL_YN = 'N' <!-- 삭제 여부 -->
|
|
|
|
AND C.DEL_YN = 'N' <!-- 삭제 여부 -->
|
|
|
|
|
|
|
|
</where>
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectNhtTrgtList" parameterType="map" resultType="dataobject">/* 사전통지 발송 대상 목록 조회(sndngMapper.selectAdvntceSndngTrgtList) */
|
|
|
|
<select id="selectNhtTrgtList" parameterType="map" resultType="dataobject">/* 사전통지 발송 대상 목록 조회(sndngMapper.selectAdvntceSndngTrgtList) */
|
|
|
|