1. 시군구코드, 업무구분코드 if 문 추가.

2. 개별총정보 - 의견진술 수정.
3. 소스 정리.
main
jjh 5 months ago
parent 8a810e99b9
commit b74e4279f3

@ -47,9 +47,7 @@
<include refid="utility.paging-prefix" />
<include refid="select" />
WHERE EG.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
<if test="taskSeCd != null">
AND EG.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
</if>
<if test="schSndngSeCd != null">
AND EG.SNDNG_SE_CD = #{schSndngSeCd} <!-- 발송 구분 코드 -->
</if>

@ -164,44 +164,47 @@
<include refid="utility.paging-prefix" />
<include refid="select" />
<where>
<if test="delYn != null">
AND ERD.DEL_YN = #{delYn} /* 삭제 여부 */
</if>
<if test="conKey != null">
AND ERD.CON_KEY = #{conKey} <!-- 외부연계식별키 -->
</if>
<if test="delYn != null">
AND ERD.DEL_YN = #{delYn} <!-- 삭제 여부 -->
</if>
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
AND ERD.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 -->
</if>
<if test="schRegDateTo != null">
AND ERD.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 -->
</if>
</when>
<when test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null">
AND ERD.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
</if>
<if test="schRegDateTo != null">
AND ERD.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schRgtrOpt == 'rgtr'">
<if test="schRgtrCd != null">
AND ERD.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
</if>
</when>
<when test="schRgtrOpt == 'mdfr'">
<if test="schRgtrCd != null">
AND ERD.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
</if>
</when>
<otherwise>
</otherwise>
</choose>
</where>
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
AND ERD.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') /* 등록 일자 시작 */
</if>
<if test="schRegDateTo != null">
AND ERD.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') /* 등록 일자 종료 */
</if>
</when>
<when test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null">
AND ERD.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') /* 수정 일자 시작 */
</if>
<if test="schRegDateTo != null">
AND ERD.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') /* 수정 일자 종료 */
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schRgtrOpt == 'rgtr'">
<if test="schRgtrCd != null">
AND ERD.RGTR = #{schRgtrCd} /* 등록자 코드 */
</if>
</when>
<when test="schRgtrOpt == 'mdfr'">
<if test="schRgtrCd != null">
AND ERD.MDFR = #{schRgtrCd} /* 수정자 코드 */
</if>
</when>
<otherwise>
</otherwise>
</choose>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />
</select>
@ -209,8 +212,11 @@
<select id="selectEpostRcptDtls" parameterType="map" resultMap="epostRcptDtlRow">/* 전자우편 접수 상세 객체 가져오기(epostRcptDtlMapper.selectEpostRcptDtls) */
<include refid="select" />
<where>
<if test="conKey != null">
AND ERD.CON_KEY = #{conKey} <!-- 외부연계식별키 -->
</if>
<if test="delYn != null">
AND ERD.DEL_YN = #{delYn} /* 삭제 여부 */
AND ERD.DEL_YN = #{delYn} <!-- 삭제 여부 -->
</if>
</where>
<include refid="utility.orderBy" />

@ -106,6 +106,13 @@
<if test="schRtpyrNm != null">
AND P.RTPYR_NM = #{schRtpyrNm} <!-- 납부자 명 -->
</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' <!-- 단속 삭제 여부 -->
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
@ -168,9 +175,6 @@
</otherwise>
</choose>
</if>
AND C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
AND C.DEL_YN = 'N' <!-- 단속 삭제 여부 -->
</where>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />

@ -112,7 +112,7 @@
AND C.CRDN_YMD <![CDATA[<=]]> #{schCrdnYmdTo} <!-- 단속 일자 종료 -->
</if>
<if test="schVhrno != null">
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
</if>
<if test="schRtpyrNo != null">
AND P.RTPYR_NO = #{schRtpyrNo} <!-- 납부자 번호 -->
@ -120,6 +120,13 @@
<if test="schRtpyrNm != null">
AND P.RTPYR_NM = #{schRtpyrNm} <!-- 납부자 명 -->
</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' <!-- 단속 삭제 여부 -->
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
@ -190,9 +197,6 @@
</otherwise>
</choose>
</if>
AND C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
AND C.DEL_YN = 'N' <!-- 단속 삭제 여부 -->
</where>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />

@ -163,6 +163,13 @@
<if test="schRtpyrNm != null">
AND P.RTPYR_NM = #{schRtpyrNm} <!-- 납부자 명 -->
</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' <!-- 단속 삭제 여부 -->
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
@ -235,9 +242,6 @@
</otherwise>
</choose>
</if>
AND C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
AND C.DEL_YN = 'N' <!-- 단속 삭제 여부 -->
</where>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />

@ -209,6 +209,13 @@
<if test="schRtpyrNm != null">
AND P.RTPYR_NM = #{schRtpyrNm} <!-- 납부자 명 -->
</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' <!-- 단속 삭제 여부 -->
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
@ -274,11 +281,8 @@
</otherwise>
</choose>
</if>
AND C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
AND C.CRDN_STTS_CD BETWEEN '21' AND '31' <!-- 단속 상태 코드 -->
AND C.RTPYR_ID IS NOT NULL <!-- 납부자 ID -->
AND C.DEL_YN = 'N' <!-- 삭제 여부 -->
AND (CC.CVLCPT_PRCS_CD IS NULL OR CC.CVLCPT_PRCS_CD <![CDATA[ <> ]]> '00') <!-- 민원 처리 코드 -->
AND L.LEVY_ID IS NULL <!-- 부과 ID -->
</where>
@ -481,6 +485,13 @@
<if test="schRtpyrNm != null">
AND P.RTPYR_NM = #{schRtpyrNm} <!-- 납부자 명 -->
</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' <!-- 단속 삭제 여부 -->
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
@ -567,9 +578,6 @@
</otherwise>
</choose>
</if>
AND C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
AND C.DEL_YN = 'N' <!-- 단속 삭제 여부 -->
</where>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />

@ -118,6 +118,13 @@
<if test="crdnId != null">
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
</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' <!-- 단속 삭제 여부 -->
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
@ -183,9 +190,6 @@
</otherwise>
</choose>
</if>
AND C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
AND C.DEL_YN = 'N' <!-- 단속 삭제 여부 -->
</where>
<include refid="utility.sortBy" />
<include refid="utility.paging-suffix" />

@ -155,6 +155,12 @@
</if>
<if test="schPayMthdSeCd != null">
AND R.PAY_MTHD_SE_CD = #{schPayMthdSeCd} <!-- 납부 방법 구분 코드 -->
</if>
<if test="sggCd != null">
AND R.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
</if>
<if test="taskSeCd != null">
AND R.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
</if>
<if test="delYn != null">
AND R.DEL_YN = #{delYn} <!-- 삭제 여부 -->
@ -259,8 +265,6 @@
</otherwise>
</choose>
</if>
AND R.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
AND R.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
</where>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />

@ -83,94 +83,93 @@
<select id="selectSndngList" parameterType="map" resultType="dataobject">/* 발송 대장 목록 조회(sndngMapper.selectSndngList) */
<include refid="utility.paging-prefix" />
<include refid="selectList" />
WHERE S.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
AND S.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
<if test="schSndngYmdFrom != null">
<where>
<if test="schSndngYmdFrom != null">
AND S.SNDNG_YMD <![CDATA[>=]]> #{schSndngYmdFrom} <!-- 발송 일자 시작 -->
</if>
<if test="schSndngYmdTo != null">
</if>
<if test="schSndngYmdTo != null">
AND S.SNDNG_YMD <![CDATA[<=]]> #{schSndngYmdTo} <!-- 발송 일자 종료 -->
</if>
<if test="schSndngRegSeCd != null">
</if>
<if test="schSndngRegSeCd != null">
AND S.SNDNG_REG_SE_CD = #{schSndngRegSeCd} <!-- 발송 등록 구분 코드 -->
</if>
<if test="schSndngSeCd != null">
</if>
<if test="schSndngSeCd != null">
AND S.SNDNG_SE_CD = #{schSndngSeCd} <!-- 발송 구분 코드 -->
</if>
<if test="sndngSeCd != null">
</if>
<if test="sndngSeCd != null">
AND S.SNDNG_SE_CD = #{sndngSeCd} <!-- 발송 구분 코드 -->
</if>
<if test="sndngSeCdFrom != null">
</if>
<if test="sndngSeCdFrom != null">
AND S.SNDNG_SE_CD <![CDATA[>=]]> #{sndngSeCdFrom} <!-- 발송 구분 코드 시작 -->
</if>
<if test="sndngSeCdTo != null">
</if>
<if test="sndngSeCdTo != null">
AND S.SNDNG_SE_CD <![CDATA[<=]]> #{sndngSeCdTo} <!-- 발송 구분 코드 종료 -->
</if>
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
</if>
<if test="sggCd != null">
AND S.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
</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') <!-- 등록 일자 시작 -->
</if>
<if test="schRegDateTo != null">
</if>
<if test="schRegDateTo != null">
AND S.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 -->
</if>
</when>
<when test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null">
</if>
</when>
<when test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null">
AND S.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
</if>
<if test="schRegDateTo != null">
</if>
<if test="schRegDateTo != null">
AND S.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schRgtrOpt == 'rgtr'">
<if test="schRgtrCd != null">
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schRgtrOpt == 'rgtr'">
<if test="schRgtrCd != null">
AND S.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
</if>
</when>
<when test="schRgtrOpt == 'mdfr'">
<if test="schRgtrCd != null">
</if>
</when>
<when test="schRgtrOpt == 'mdfr'">
<if test="schRgtrCd != null">
AND S.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
</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" />
</if>
</when>
<otherwise>
</otherwise>
</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.paging-suffix" />
</select>
@ -278,128 +277,134 @@
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_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
WHERE C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
<if test="crdnIds != null">
<where>
<if test="crdnIds != null">
AND C.CRDN_ID IN (
<foreach collection="crdnIds" item="crdnId" separator=","> #{crdnId} </foreach> <!-- 단속 Ids -->
)
</if>
<if test="crdnId != null">
<foreach collection="crdnIds" item="crdnId" separator=","> #{crdnId} </foreach> <!-- 단속 Ids -->
)
</if>
<if test="crdnId != null">
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
</if>
<if test="crdnSttsCd != null">
</if>
<if test="crdnSttsCd != null">
AND C.CRDN_STTS_CD = #{crdnSttsCd} <!-- 단속 상태 코드 -->
</if>
<if test="schLevyExclYmdFrom != null">
</if>
<if test="schLevyExclYmdFrom != null">
AND LE.LEVY_EXCL_YMD <![CDATA[>=]]> #{schLevyExclYmdFrom} <!-- 부과제외 일자 시작 -->
</if>
<if test="schLevyExclYmdTo != null">
</if>
<if test="schLevyExclYmdTo != null">
AND LE.LEVY_EXCL_YMD <![CDATA[<=]]> #{schLevyExclYmdTo} <!-- 부과제외 일자 종료 -->
</if>
<if test="schLevyExclRsnCd != null">
</if>
<if test="schLevyExclRsnCd != null">
AND LE.LEVY_EXCL_RSN_CD <![CDATA[<=]]> #{schLevyExclRsnCd} <!-- 부과제외 사유 코드 -->
</if>
<if test="schCrdnYmdFrom != null">
</if>
<if test="schCrdnYmdFrom != null">
AND C.CRDN_YMD <![CDATA[>=]]> #{schCrdnYmdFrom} <!-- 단속 일자 시작 -->
</if>
<if test="schCrdnYmdTo != null">
</if>
<if test="schCrdnYmdTo != null">
AND C.CRDN_YMD <![CDATA[<=]]> #{schCrdnYmdTo} <!-- 단속 일자 종료 -->
</if>
<if test="schVhrno != null">
</if>
<if test="schVhrno != null">
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
</if>
<if test="schRtpyrNo != null">
</if>
<if test="schRtpyrNo != null">
AND P.RTPYR_NO = #{schRtpyrNo} <!-- 납부자 번호 -->
</if>
<if test="schRtpyrNm != null">
</if>
<if test="schRtpyrNm != null">
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' <!-- 삭제 여부 -->
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
AND LE.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 -->
</if>
<if test="schRegDateTo != null">
</if>
<if test="schRegDateTo != null">
AND LE.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 -->
</if>
</when>
<when test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null">
</if>
</when>
<when test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null">
AND LE.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
</if>
<if test="schRegDateTo != null">
</if>
<if test="schRegDateTo != null">
AND LE.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schRgtrOpt == 'rgtr'">
<if test="schRgtrCd != null">
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schRgtrOpt == 'rgtr'">
<if test="schRgtrCd != null">
AND LE.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
</if>
</when>
<when test="schRgtrOpt == 'mdfr'">
<if test="schRgtrCd != null">
</if>
</when>
<when test="schRgtrOpt == 'mdfr'">
<if test="schRgtrCd != null">
AND LE.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
</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" />
</if>
</when>
<otherwise>
</otherwise>
</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>
<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_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)
WHERE C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
AND (CC.CVLCPT_PRCS_CD IS NULL OR CC.CVLCPT_PRCS_CD <![CDATA[ <> ]]> '00') <!-- 민원 처리 코드 -->
<if test="crdnIds != null">
<where>
<if test="crdnIds != null">
AND C.CRDN_ID IN ( <!-- 단속 Ids -->
<foreach collection="crdnIds" item="crdnId" separator=","> #{crdnId} </foreach>
)
</if>
<if test="crdnId != null">
<foreach collection="crdnIds" item="crdnId" separator=","> #{crdnId} </foreach>
)
</if>
<if test="crdnId != null">
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
</if>
<if test="crdnSttsCdFrom != null">
</if>
<if test="crdnSttsCdFrom != null">
AND C.CRDN_STTS_CD <![CDATA[>=]]> #{crdnSttsCdFrom} <!-- 단속 상태 코드 시작 -->
</if>
<if test="crdnSttsCdTo != null">
</if>
<if test="crdnSttsCdTo != null">
AND C.CRDN_STTS_CD <![CDATA[<=]]> #{crdnSttsCdTo} <!-- 단속 상태 코드 종료 -->
</if>
<if test="schCrdnYmdFrom != null">
</if>
<if test="schCrdnYmdFrom != null">
AND C.CRDN_YMD <![CDATA[>=]]> #{schCrdnYmdFrom} <!-- 단속 일자 시작 -->
</if>
<if test="schCrdnYmdTo != null">
</if>
<if test="schCrdnYmdTo != null">
AND C.CRDN_YMD <![CDATA[<=]]> #{schCrdnYmdTo} <!-- 단속 일자 종료 -->
</if>
<if test="schVltnCd != null">
</if>
<if test="schVltnCd != null">
AND V.VLTN_CD = #{schVltnCd} <!-- 위반 코드 -->
</if>
<if test="schVhrno != null">
</if>
<if test="schVhrno != null">
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
</if>
<if test="schRtpyrNm != null">
</if>
<if test="schRtpyrNm != null">
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' <!-- 삭제 여부 -->
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
AND C.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 -->
</if>
<if test="schRegDateTo != null">
</if>
<if test="schRegDateTo != null">
AND C.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 -->
</if>
</when>
<when test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null">
</if>
</when>
<when test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null">
AND C.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
</if>
<if test="schRegDateTo != null">
</if>
<if test="schRegDateTo != null">
AND C.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schRgtrOpt == 'rgtr'">
<if test="schRgtrCd != null">
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schRgtrOpt == 'rgtr'">
<if test="schRgtrCd != null">
AND C.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
</if>
</when>
<when test="schRgtrOpt == 'mdfr'">
<if test="schRgtrCd != null">
</if>
</when>
<when test="schRgtrOpt == 'mdfr'">
<if test="schRgtrCd != null">
AND C.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
</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" />
</if>
</when>
<otherwise>
</otherwise>
</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>
<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)
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)
WHERE L.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
AND L.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
<if test="levyIds != null">
<where>
<if test="levyIds != null">
AND L.LEVY_ID IN ( <!-- 부과 Ids -->
<foreach collection="levyIds" item="levyId" separator=","> #{levyId} </foreach>
)
</if>
<if test="levyId != null">
<foreach collection="levyIds" item="levyId" separator=","> #{levyId} </foreach>
)
</if>
<if test="levyId != null">
AND L.LEVY_ID = #{levyId} <!-- 부과 ID -->
</if>
<if test="crdnIds != null">
</if>
<if test="crdnIds != null">
AND C.CRDN_ID IN ( <!-- 단속 Ids -->
<foreach collection="crdnIds" item="crdnId" separator=","> #{crdnId} </foreach>
)
</if>
<if test="crdnId != null">
<foreach collection="crdnIds" item="crdnId" separator=","> #{crdnId} </foreach>
)
</if>
<if test="crdnId != null">
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
</if>
<if test="schVltnCd != null">
</if>
<if test="schVltnCd != null">
AND V.VLTN_CD = #{schVltnCd} <!-- 위반 코드 -->
</if>
<if test="schLevyYmd != null">
</if>
<if test="schLevyYmd != null">
AND L.LEVY_YMD = #{schLevyYmd} <!-- 부과 일자 -->
</if>
<if test="schFrstDudtYmd != null">
</if>
<if test="schFrstDudtYmd != null">
AND L.FRST_DUDT_YMD = #{schFrstDudtYmd} <!-- 최초 납기 일자 -->
</if>
<if test="schFyr != null">
</if>
<if test="schFyr != null">
AND L.FYR = #{schFyr} <!-- 회계연도 -->
</if>
<if test="schLevyNoFrom != null">
</if>
<if test="schLevyNoFrom != null">
AND L.LEVY_NO <![CDATA[>=]]> #{schLevyNoFrom} <!-- 부과 번호 시작 -->
</if>
<if test="schLevyNoTo != null">
</if>
<if test="schLevyNoTo != null">
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 C.DEL_YN = 'N' <!-- 삭제 여부 -->
</where>
</sql>
<select id="selectNhtTrgtList" parameterType="map" resultType="dataobject">/* 사전통지 발송 대상 목록 조회(sndngMapper.selectAdvntceSndngTrgtList) */

@ -229,12 +229,6 @@
<include refid="utility.paging-prefix" />
<include refid="selectList" />
<where>
<if test="sggCd != null">
AND S.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
</if>
<if test="taskSeCd != null">
AND S.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
</if>
<if test="sndngId != null">
AND SD.SNDNG_ID = #{sndngId} <!-- 발송 Id -->
</if>
@ -279,6 +273,12 @@
<if test="delYn != null">
AND SD.DEL_YN = #{delYn} <!-- 삭제 여부 -->
</if>
<if test="sggCd != null">
AND S.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
</if>
<if test="taskSeCd != null">
AND S.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
</if>
</where>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />
@ -818,124 +818,130 @@
INNER JOIN TB_CRDN C ON (SD.CRDN_ID = C.CRDN_ID)
INNER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
LEFT OUTER JOIN TB_EPOST_DLVR_RSLT EDR ON (SD.CON_KEY = EDR.CON_KEY AND SD.RG_NO = EDR.REGINO)
WHERE S.SGG_CD = #{sggCd}
AND S.TASK_SE_CD = #{taskSeCd}
AND (S.RESND_YN IS NULL OR S.RESND_YN = 'N')
AND (SD.SVBTC_ID IS NULL OR SD.SVBTC_ID = '')
AND (SD.SNDNG_RCVMT_CD IS NULL OR SD.SNDNG_RCVMT_CD = '')
<if test="sndngDtlIds != null">
<where>
<if test="sndngDtlIds != null">
AND SD.SNDNG_DTL_ID IN ( <!-- 발송 상세 Ids -->
<foreach collection="sndngDtlIds" item="sndngDtlId" separator=","> #{sndngDtlId} </foreach>
)
</if>
<choose>
<when test='schChcRgIndct == "Y"'>
</if>
<choose>
<when test='schChcRgIndct == "Y"'>
AND ( (SD.SNDNG_DTL_STTS_CD = #{sndngDtlSttsCd})
OR (EDR.RELRECPRSNCD BETWEEN '13' AND '16')
OR (RCPN_REL_NM IN (#{rcpnRelNm1}, #{rcpnRelNm2}, #{rcpnRelNm3}, #{rcpnRelNm4})) )
</when>
<otherwise>
</when>
<otherwise>
AND SD.SNDNG_DTL_STTS_CD = #{sndngDtlSttsCd}
</otherwise>
</choose>
<if test="schDlvrYmdFrom != null">
</otherwise>
</choose>
<if test="schDlvrYmdFrom != null">
AND SD.DLVR_YMD <![CDATA[>=]]> #{schDlvrYmdFrom} <!-- 발송 일자 시작 -->
</if>
<if test="schDlvrYmdTo != null">
</if>
<if test="schDlvrYmdTo != null">
AND SD.DLVR_YMD <![CDATA[<=]]> #{schDlvrYmdTo} <!-- 발송 일자 종료 -->
</if>
<if test="schSndngYmdFrom != null">
</if>
<if test="schSndngYmdFrom != null">
AND SD.SNDNG_YMD <![CDATA[>=]]> #{schSndngYmdFrom} <!-- 발송 일자 시작 -->
</if>
<if test="schSndngYmdTo != null">
</if>
<if test="schSndngYmdTo != null">
AND SD.SNDNG_YMD <![CDATA[<=]]> #{schSndngYmdTo} <!-- 발송 일자 종료 -->
</if>
<if test="schSndngSeCd != null">
</if>
<if test="schSndngSeCd != null">
AND SD.SNDNG_SE_CD = #{schSndngSeCd} <!-- 발송 구분 코드 -->
</if>
<if test="schUndlvrRsnCd != null">
</if>
<if test="schUndlvrRsnCd != null">
AND SD.UNDLVR_RSN_CD = #{schUndlvrRsnCd} <!-- 미배달 사유 코드 -->
</if>
<if test="delYn != null">
</if>
<if test="sggCd != null">
AND S.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
</if>
<if test="taskSeCd != null">
AND S.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
</if>
AND (S.RESND_YN IS NULL OR S.RESND_YN = 'N')
AND (SD.SVBTC_ID IS NULL OR SD.SVBTC_ID = '')
AND (SD.SNDNG_RCVMT_CD IS NULL OR SD.SNDNG_RCVMT_CD = '')
<if test="delYn != null">
AND SD.DEL_YN = #{delYn} <!-- 삭제 여부 -->
</if>
<if test="schCrdnYmdFrom != null">
</if>
<if test="schCrdnYmdFrom != null">
AND C.CRDN_YMD <![CDATA[>=]]> #{schCrdnYmdFrom} <!-- 단속 일자 시작 -->
</if>
<if test="schCrdnYmdTo != null">
</if>
<if test="schCrdnYmdTo != null">
AND C.CRDN_YMD <![CDATA[<=]]> #{schCrdnYmdTo} <!-- 단속 일자 종료 -->
</if>
<if test="schVhrno != null">
</if>
<if test="schVhrno != null">
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
</if>
</if>
AND C.DEL_YN = 'N'
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
<choose>
<when test="schRegDateOpt == 'regDt'">
<if test="schRegDateFrom != null">
AND SD.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 -->
</if>
<if test="schRegDateTo != null">
</if>
<if test="schRegDateTo != null">
AND SD.REG_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 등록 일자 종료 -->
</if>
</when>
<when test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null">
</if>
</when>
<when test="schRegDateOpt == 'mdfcnDt'">
<if test="schRegDateFrom != null">
AND SD.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
</if>
<if test="schRegDateTo != null">
</if>
<if test="schRegDateTo != null">
AND SD.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schRgtrOpt == 'rgtr'">
<if test="schRgtrCd != null">
</if>
</when>
<otherwise>
</otherwise>
</choose>
<choose>
<when test="schRgtrOpt == 'rgtr'">
<if test="schRgtrCd != null">
AND SD.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
</if>
</when>
<when test="schRgtrOpt == 'mdfr'">
<if test="schRgtrCd != null">
</if>
</when>
<when test="schRgtrOpt == 'mdfr'">
<if test="schRgtrCd != null">
AND SD.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
</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 == 'rgNo'"> SD.RG_NO </when>
<when test="by == 'dlvrYmd'"> SD.DLVR_YMD </when>
<when test="by == 'dlvrTm'"> SD.DLVR_TM </when>
<when test="by == 'undlvrRsnNm'"> SD.UNDLVR_RSN_NM </when>
<when test="by == 'actlRcpnNm'"> SD.ACTL_RCPN_NM </when>
<when test="by == 'rcpnRelNm'"> SD.RCPN_REL_NM </when>
<when test="by == 'sndngSeCd'"> SD.SNDNG_SE_CD </when>
<when test="by == 'sndngYmd'"> SD.SNDNG_YMD </when>
<when test="by == 'ffnlgAmt'"> SD.FFNLG_AMT </when>
<when test="by == 'rcpnNm'"> SD.RCPN_NM </when>
<when test="by == 'rcpnZip'"> SD.RCPN_ZIP </when>
<when test="by == 'rcpnAddr'"> SD.RCPN_ADDR </when>
<when test="by == 'rcpnDtlAddr'"> SD.RCPN_DTL_ADDR </when>
<when test="by == 'crdnYmd'"> C.CRDN_YMD </when>
<when test="by == 'vhrno'"> C.VHRNO </when>
<when test="by == 'rtpyrSeCd'"> P.RTPYR_SE_CD </when>
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
<when test="by == 'crdnStdgNm'"> C.CRDN_STDG_NM </when>
<when test="by == 'crdnPlc'"> C.CRDN_PLC </when>
<when test="by == 'crdnSttsCd'"> C.CRDN_STTS_CD </when>
</choose>
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
</if>
</when>
<otherwise>
</otherwise>
</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 == 'rgNo'"> SD.RG_NO </when>
<when test="by == 'dlvrYmd'"> SD.DLVR_YMD </when>
<when test="by == 'dlvrTm'"> SD.DLVR_TM </when>
<when test="by == 'undlvrRsnNm'"> SD.UNDLVR_RSN_NM </when>
<when test="by == 'actlRcpnNm'"> SD.ACTL_RCPN_NM </when>
<when test="by == 'rcpnRelNm'"> SD.RCPN_REL_NM </when>
<when test="by == 'sndngSeCd'"> SD.SNDNG_SE_CD </when>
<when test="by == 'sndngYmd'"> SD.SNDNG_YMD </when>
<when test="by == 'ffnlgAmt'"> SD.FFNLG_AMT </when>
<when test="by == 'rcpnNm'"> SD.RCPN_NM </when>
<when test="by == 'rcpnZip'"> SD.RCPN_ZIP </when>
<when test="by == 'rcpnAddr'"> SD.RCPN_ADDR </when>
<when test="by == 'rcpnDtlAddr'"> SD.RCPN_DTL_ADDR </when>
<when test="by == 'crdnYmd'"> C.CRDN_YMD </when>
<when test="by == 'vhrno'"> C.VHRNO </when>
<when test="by == 'rtpyrSeCd'"> P.RTPYR_SE_CD </when>
<when test="by == 'rtpyrNo'"> P.RTPYR_NO </when>
<when test="by == 'rtpyrNm'"> P.RTPYR_NM </when>
<when test="by == 'crdnStdgNm'"> C.CRDN_STDG_NM </when>
<when test="by == 'crdnPlc'"> C.CRDN_PLC </when>
<when test="by == 'crdnSttsCd'"> C.CRDN_STTS_CD </when>
</choose>
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
</when>
<otherwise>
</otherwise>
</choose>
</if>
</where>
</sql>
<select id="selectSvbtcsTrgtSndngDtlIds" parameterType="map" resultType="dataobject">/* 공시송달 대상 발송 상세 ID 가져오기(sndngMapper.selectSvbtcsTrgtSndngDtlIds) */

@ -61,26 +61,30 @@
<select id="selectCvlcptDscsnList" parameterType="map" resultType="dataobject">/* 민원 상담 내용 목록 조회(cvlcptDscsnCnMapper.selectCvlcptDscsnList) */
<include refid="utility.paging-prefix" />
<include refid="select" />
WHERE CD.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
<if test="taskSeCd != null">
AND CD.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
</if>
<if test="schDscsnYmdFrom != null">
<where>
<if test="schDscsnYmdFrom != null">
AND CD.DSCSN_YMD <![CDATA[>=]]> #{schDscsnYmdFrom} <!-- 상담 일자 시작 -->
</if>
<if test="schDscsnYmdTo != null">
</if>
<if test="schDscsnYmdTo != null">
AND CD.DSCSN_YMD <![CDATA[<=]]> #{schDscsnYmdTo} <!-- 상담 일자 종료 -->
</if>
<if test="schVhrno != null">
</if>
<if test="schVhrno != null">
AND CD.VHRNO = #{schVhrno} <!-- 차량번호 -->
</if>
<if test="schRtpyrNo != null">
</if>
<if test="schRtpyrNo != null">
AND CD.RTPYR_NO = #{schRtpyrNo} <!-- 납부자 번호 -->
</if>
<if test="schCvlprNm != null">
</if>
<if test="schCvlprNm != null">
AND CD.CVLPR_NM = #{schCvlprNm} <!-- 민원인 명 -->
</if>
</if>
<if test="sggCd != null">
AND CD.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
</if>
<if test="taskSeCd != null">
AND CD.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
</if>
AND CD.DEL_YN = 'N'
</where>
<include refid="utility.orderBy" />
<include refid="utility.paging-suffix" />
</select>

@ -368,7 +368,7 @@
, title: params.title
, content: resp
, size: "lg"
, onClose: () => { $P.fnRefreshDataInfo(); }
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
});
}
});
@ -516,7 +516,7 @@
, title: params.title
, content: resp
, size: "lg"
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재 조회
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
});
}
});
@ -538,7 +538,7 @@
, onOK: () => { }
});
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재 조회
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재조회
}
});
}
@ -564,7 +564,7 @@
, title: dialogTitle
, content: resp
, size: "lg"
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재 조회
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
});
}
});

@ -201,7 +201,7 @@
prefix: "opnn"
, prefixName: "의견제출"
, keymapper: info => info ? info.OPNN_ID : ""
, dataGetter: obj => obj.opnnSbmsn
, dataGetter: obj => obj.opnnSbmsnInfo
, formats: {
RCPT_YMD: dateFormat
, ANS_YMD_TM: datetimeFormat
@ -244,7 +244,7 @@
, title: params.title
, content: resp
, size: "lg"
, onClose: () => { $P.refreshDataInfo(); }
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
});
}
}
@ -261,9 +261,7 @@
, onOK: () => { }
});
if (resp.saved) {
$P.refreshDataInfo(); // 자료 재조회
}
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재조회
}
// 삭제
@ -281,7 +279,7 @@
* 사용자 함수(function)
**************************************************************************/
// 자료 재조회
$P.refreshDataInfo = () => {
$P.fnRefreshDataInfo = () => {
// 단속 ID
let crdnId = $("#crdnId--${pageNameMain}").val();
// 단속 ID 가 없다면.. return
@ -309,7 +307,7 @@
pageObject["${pageNameMain}"].mainControl.setData([resp.totalInfo]);
}
// 의견제출 정보
if (resp.opnnSbmsn) { $P.control.setData([resp.opnnSbmsn]); }
if (resp.opnnSbmsnInfo) { $P.control.setData([resp.opnnSbmsnInfo]); }
}
});
}
@ -327,7 +325,7 @@
, title: params.title
, content: resp
, size: "lg"
, onClose: () => { $P.refreshDataInfo(); }
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
});
}
});
@ -643,9 +641,9 @@
$P.initForm();
// 3. Dataset 설정
let opnnSbmsn = ${opnnSbmsn}; // 의견제출 정보
if (opnnSbmsn) {
$P.control.setData([opnnSbmsn]);
let opnnSbmsnInfo = ${opnnSbmsnInfo}; // 의견제출 정보
if (opnnSbmsnInfo) {
$P.control.setData([opnnSbmsnInfo]);
}
});

@ -299,7 +299,7 @@
, title: params.title
, content: resp
, size: "md"
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재 조회
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
});
}
});
@ -316,7 +316,7 @@
, onOK: () => { }
});
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재 조회
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재조회
}
// 개별 반송 삭제

@ -340,7 +340,7 @@
, title: params.title
, content: resp
, size: "lg"
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재 조회
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
});
}
}
@ -358,9 +358,7 @@
, onOK: () => { }
});
if (resp.saved) {
$P.fnRefreshDataInfo(); // 자료 재 조회
}
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재조회
}
// 감경 삭제
@ -403,7 +401,7 @@
, title: params.title
, content: resp
, size: "md"
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재 조회
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
});
}
}
@ -421,7 +419,7 @@
, onOK: () => { }
});
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재 조회
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재조회
}
// 부과제외 삭제

@ -406,7 +406,7 @@
, title: params.title
, content: resp
, size: "md"
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재 조회
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
});
}
}

@ -293,7 +293,7 @@
, title: params.title
, content: resp
, size: "lg"
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재 조회
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
});
}
});
@ -311,7 +311,7 @@
});
// 자료 재조회
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재 조회
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재조회
}
// 수기 수납 취소
@ -337,7 +337,7 @@
});
// 자료 재조회
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재 조회
if (resp.saved) { $P.fnRefreshDataInfo(); } // 자료 재조회
}
// 수기 수납 삭제

@ -153,7 +153,7 @@
, title: params.title
, content: resp
, size: "lg"
, onClose: () => { $P.fnRefreshDataInfo(); }
, onClose: () => { $P.fnRefreshDataInfo(); } // 자료 재조회
});
}
});

Loading…
Cancel
Save