@ -161,6 +161,12 @@
, (SELECT GET_CODE_NM('FIM011', P.RTPYR_SE_CD) FROM DUAL) AS RTPYR_SE_NM <!-- 납부자 구분 명 -->
, (GET_BRDT_FORMAT(P.RTPYR_BRDT, '.')) AS RTPYR_BRDT_MASK <!-- 납부자 생년월일 마스크 -->
, L.LEVY_ID <!-- 부과 ID -->
<include refid= "fromRductLevyTrgt" />
<include refid= "utility.orderBy" />
<include refid= "utility.paging-suffix" />
</select>
<sql id= "fromRductLevyTrgt" >
FROM TB_CRDN C
INNER JOIN TB_VLTN V ON (C.VLTN_ID = V.VLTN_ID)
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')
@ -172,6 +178,11 @@
AND C.CRDN_STTS_CD BETWEEN '21' AND '31' <!-- 단속 상태 코드 -->
AND C.RTPYR_ID IS NOT NULL <!-- 납부자 ID -->
AND L.LEVY_ID IS NULL <!-- 부과 ID -->
<if test= "crdnIds != null" >
AND C.CRDN_ID IN ( <!-- 단속 Ids -->
<foreach collection= "crdnIds" item= "crdnId" separator= "," > #{crdnId} </foreach>
)
</if>
<if test= "schCrdnYmdFrom != null" >
AND C.CRDN_YMD <![CDATA[>=]]> #{schCrdnYmdFrom} <!-- 단속 일자 시작 -->
</if>
@ -179,10 +190,10 @@
AND C.CRDN_YMD <![CDATA[<=]]> #{schCrdnYmdTo} <!-- 단속 일자 종료 -->
</if>
<if test= "schVhrno != null" >
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
</if>
<if test= "schVltnCd != null" >
AND V.VLTN_CD = #{schVltnCd} <!-- 위반 코드 -->
AND V.VLTN_CD = #{schVltnCd} <!-- 위반 코드 -->
</if>
<if test= "schCvlcptRcptYmdFrom != null" >
AND CC.CVLCPT_RCPT_YMD <![CDATA[>=]]> #{schCvlcptRcptYmdFrom} <!-- 민원 접수 일자 시작 -->
@ -200,9 +211,9 @@
AND CC.CVLCPT_PRCS_PIC = #{schCvlcptPrcsPic} <!-- 민원 처리 담당자 -->
</if>
<if test= "schRtpyrNm != null" >
AND P.RTPYR_NM = #{schRtpyrNm} <!-- 납부자 명 -->
AND P.RTPYR_NM = #{schRtpyrNm} <!-- 납부자 명 -->
</if>
AND C.DEL_YN = 'N' <!-- 삭제 여부 -->
AND C.DEL_YN = 'N' <!-- 삭제 여부 -->
<choose >
<when test= "schRegDateOpt == 'regDt'" >
<if test= "schRegDateFrom != null" >
@ -268,8 +279,12 @@
</otherwise>
</choose>
</if>
</sql>
<select id= "selectRductLevyTrgtIds" parameterType= "map" resultType= "dataobject" > /* 감경부과 대상 목록 조회(levyMapper.selectRductLevyTrgtIds) */
SELECT C.CRDN_ID <!-- 단속 ID -->
<include refid= "fromRductLevyTrgt" />
<include refid= "utility.orderBy" />
<include refid= "utility.paging-suffix" />
</select>
<sql id= "select" >
@ -528,9 +543,9 @@
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
AND C.DEL_YN = 'N' <!-- 삭제 여부 -->
</if>
<if test= "levyI D s != null">
AND L.LEVY_ID IN ( <!-- 부과 I D s -->
<foreach collection= "levyI D s" item= "levyId" separator= "," > #{levyId} </foreach>
<if test= "levyI d s != null">
AND L.LEVY_ID IN ( <!-- 부과 I d s -->
<foreach collection= "levyI d s" item= "levyId" separator= "," > #{levyId} </foreach>
)
</if>
<if test= "levyId != null" >