|
|
|
@ -77,87 +77,98 @@
|
|
|
|
|
<select id="selectCrdnReRegList" parameterType="map" resultType="dataobject">/* 단속 재등록 목록 조회(crdnReRegMapper.selectCrdnReRegList) */
|
|
|
|
|
<include refid="utility.paging-prefix" />
|
|
|
|
|
<include refid="select" />
|
|
|
|
|
WHERE CRR.CRDN_REG_SE_CD = '03' <!-- 단속 등록 구분 코드 - FIM026 -->
|
|
|
|
|
<if test="schReRegYmdFrom != null">
|
|
|
|
|
<where>
|
|
|
|
|
AND CRR.CRDN_REG_SE_CD = '03' <!-- 단속 등록 구분 코드 - FIM026 -->
|
|
|
|
|
<if test="schReRegYmdFrom != null">
|
|
|
|
|
AND CRR.RE_REG_YMD <![CDATA[>=]]> #{schReRegYmdFrom} <!-- 재등록 일자 시작 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schReRegYmdTo != null">
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schReRegYmdTo != null">
|
|
|
|
|
AND CRR.RE_REG_YMD <![CDATA[<=]]> #{schReRegYmdTo} <!-- 재등록 일자 종료 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="delYn != null">
|
|
|
|
|
</if>
|
|
|
|
|
<if test="delYn != null">
|
|
|
|
|
AND CRR.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 test="sggCd != null">
|
|
|
|
|
AND C.SGG_CD = #{sggCd} <!-- 시군구 코드 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="taskSeCd != null">
|
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd} <!-- 업무 구분 코드 -->
|
|
|
|
|
</if>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="schRegDateOpt == 'regDt'">
|
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRtpyrNo != null">
|
|
|
|
|
AND P.RTPYR_NO = #{schRtpyrNo} <!-- 납부자 번호 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRtpyrNm != null">
|
|
|
|
|
AND P.RTPYR_NM = #{schRtpyrNm} <!-- 납부자 명 -->
|
|
|
|
|
</if>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="schRegDateOpt == 'regDt'">
|
|
|
|
|
<if test="schRegDateFrom != null">
|
|
|
|
|
AND CRR.REG_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 등록 일자 시작 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
|
AND CRR.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 CRR.MDFCN_DT <![CDATA[>=]]> CONCAT(#{schRegDateFrom},'000000') <!-- 수정 일자 시작 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schRegDateTo != null">
|
|
|
|
|
AND CRR.MDFCN_DT <![CDATA[<=]]> CONCAT(#{schRegDateTo},'235959') <!-- 수정 일자 종료 -->
|
|
|
|
|
</if>
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="schRgtrOpt == 'rgtr'">
|
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
|
AND CRR.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
|
|
|
|
|
</if>
|
|
|
|
|
</when>
|
|
|
|
|
<when test="schRgtrOpt == 'mdfr'">
|
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
|
AND CRR.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
|
|
|
|
|
</if>
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
</if>
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="mainOption == 'codeValue' or mainOption == 'match' or mainOption == 'ymd'">
|
|
|
|
|
<include refid="dynamicSearch.start" />
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="by == 'reRegYmd'"> CRR.RE_REG_YMD </when>
|
|
|
|
|
<when test="by == 'crdnRegSeCd'"> CRR.CRDN_REG_SE_CD </when>
|
|
|
|
|
<when test="by == 'etcCn'"> CRR.ETC_CN </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 == 'crdnPlc'"> C.CRDN_PLC </when>
|
|
|
|
|
<when test="by == 'vltnArtcl'"> V.VLTN_ARTCL </when>
|
|
|
|
|
<when test="by == 'ffnlgCrdnAmt'"> C.FFNLG_CRDN_AMT </when>
|
|
|
|
|
<when test="by == 'crdnSttsCd'"> C.CRDN_STTS_CD </when>
|
|
|
|
|
</choose>
|
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
|
<when test="schRgtrOpt == 'rgtr'">
|
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
|
AND CRR.RGTR = #{schRgtrCd} <!-- 등록자 코드 -->
|
|
|
|
|
</if>
|
|
|
|
|
</when>
|
|
|
|
|
<when test="schRgtrOpt == 'mdfr'">
|
|
|
|
|
<if test="schRgtrCd != null">
|
|
|
|
|
AND CRR.MDFR = #{schRgtrCd} <!-- 수정자 코드 -->
|
|
|
|
|
</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 == 'reRegYmd'"> CRR.RE_REG_YMD </when>
|
|
|
|
|
<when test="by == 'crdnRegSeCd'"> CRR.CRDN_REG_SE_CD </when>
|
|
|
|
|
<when test="by == 'etcCn'"> CRR.ETC_CN </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 == 'crdnPlc'"> C.CRDN_PLC </when>
|
|
|
|
|
<when test="by == 'ffnlgCrdnAmt'"> C.FFNLG_CRDN_AMT </when>
|
|
|
|
|
<when test="by == 'crdnSttsCd'"> C.CRDN_STTS_CD </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 == 'zip'"> PA.ZIP </when>
|
|
|
|
|
<when test="by == 'addr'"> PA.ADDR </when>
|
|
|
|
|
<when test="by == 'dtlAddr'"> PA.DTL_ADDR </when>
|
|
|
|
|
<when test="by == 'vltnArtcl'"> V.VLTN_ARTCL </when>
|
|
|
|
|
</choose>
|
|
|
|
|
<include refid="dynamicSearch.center" />#{term}<include refid="dynamicSearch.end" />
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
</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" />
|
|
|
|
|
</select>
|
|
|
|
@ -166,18 +177,19 @@
|
|
|
|
|
<include refid="select" />
|
|
|
|
|
<where>
|
|
|
|
|
<if test="reRegIds != null">
|
|
|
|
|
AND CRR.RE_REG_ID IN ( <!-- 재등록 Ids -->
|
|
|
|
|
AND CRR.RE_REG_ID IN ( <!-- 재등록 Ids -->
|
|
|
|
|
<foreach collection="reRegIds" item="reRegId" separator=","> #{reRegId} </foreach>
|
|
|
|
|
)
|
|
|
|
|
</if>
|
|
|
|
|
<if test="reRegId != null">
|
|
|
|
|
AND CRR.RE_REG_ID = #{reRegId} <!-- 재등록 ID -->
|
|
|
|
|
AND CRR.RE_REG_ID= #{reRegId} <!-- 재등록 ID -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="delYn != null">
|
|
|
|
|
AND CRR.DEL_YN = #{delYn} <!-- 삭제 여부 -->
|
|
|
|
|
AND CRR.DEL_YN = #{delYn} <!-- 삭제 여부 -->
|
|
|
|
|
</if>
|
|
|
|
|
<if test="crdnId != null">
|
|
|
|
|
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
|
|
|
|
|
AND C.CRDN_ID = #{crdnId} <!-- 단속 ID -->
|
|
|
|
|
AND C.DEL_YN = #{delYn} <!-- 삭제 여부 -->
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
|