|
|
|
@ -227,6 +227,114 @@ AND C.${by} LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
<include refid="selectCrackdown"/>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectTagInformationUndefinedDataList" parameterType="map" resultType="dataobject">
|
|
|
|
|
/* 표지정보 미확인 자료 목록 조회(crdn06Mapper.selectTagInformationUndefinedDataList) */
|
|
|
|
|
<include refid="utility.paging-prefix"/>
|
|
|
|
|
SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, C.CRDN_INPT_SE_CD <!-- 단속 입력 구분 코드 -->
|
|
|
|
|
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
|
|
|
|
|
, C.VHRNO <!-- 차량번호 -->
|
|
|
|
|
, C.CRDN_STDG_NM <!-- 단속 법정동 명 -->
|
|
|
|
|
<!-- 신고/단속자 -->
|
|
|
|
|
, CC.CVLCPT_APLCNT_NM <!-- 민원 신청인 명 -->
|
|
|
|
|
, C.TEAM_ID <!-- 조 ID -->
|
|
|
|
|
, C.VLTN_ID <!-- 위반 ID -->
|
|
|
|
|
<!-- 잔액 -->
|
|
|
|
|
<!-- 영상매체 -->
|
|
|
|
|
, C.ATCH_FILE_CNT <!-- 사진건수 -->
|
|
|
|
|
, C.CRDN_SN <!-- 단속 일련번호 -->
|
|
|
|
|
<!-- 표지확인 -->
|
|
|
|
|
, C.CRDN_STTS_CD <!-- 단속 상태 코드 -->
|
|
|
|
|
, C.DEL_YN
|
|
|
|
|
, C.RGTR
|
|
|
|
|
, C.REG_DT
|
|
|
|
|
, C.MDFR
|
|
|
|
|
, C.MDFCN_DT
|
|
|
|
|
, C.DLTR
|
|
|
|
|
, C.DEL_DT
|
|
|
|
|
, C.DEL_RSN
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CRDN_ID = CC.CRDN_ID)
|
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="by == 'advancedOption1'">
|
|
|
|
|
AND FN_GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
AND C.${by} LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="crdnId != null">AND C.CRDN_ID = #{crdnId}</if>
|
|
|
|
|
<if test="taskSeCd != null">AND C.TASK_SE_CD = #{taskSeCd}</if>
|
|
|
|
|
<if test="vhrno != null">AND C.VHRNO LIKE CONCAT('%', #{vhrno}, '%')</if>
|
|
|
|
|
<if test="schDateFrom != null or schDateTo != null">
|
|
|
|
|
<if test="schDateOpt == 'crdnYmd'">
|
|
|
|
|
<if test="schDateFrom != null">AND C.CRDN_YMD <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND C.CRDN_YMD <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateOpt == 'regDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
|
<include refid="utility.paging-suffix"/>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectFineReductionDataList" parameterType="map" resultType="dataobject">
|
|
|
|
|
/* 과태료 감경 자료 목록 조회(crdn06Mapper.selectFineReductionDataList) */
|
|
|
|
|
<include refid="utility.paging-prefix"/>
|
|
|
|
|
SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
<!-- 감액일자 -->
|
|
|
|
|
<!-- 감액사유 -->
|
|
|
|
|
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 접수(위반)일시 -->
|
|
|
|
|
, C.VHRNO <!-- 차량번호 -->
|
|
|
|
|
<!-- 감액금액 -->
|
|
|
|
|
<!-- 잔액 -->
|
|
|
|
|
<!-- 감액특기사항 -->
|
|
|
|
|
, C.CRDN_STTS_CD <!-- 처리상태 -->
|
|
|
|
|
, C.DEL_YN
|
|
|
|
|
, C.RGTR
|
|
|
|
|
, C.REG_DT
|
|
|
|
|
, C.MDFR
|
|
|
|
|
, C.MDFCN_DT
|
|
|
|
|
, C.DLTR
|
|
|
|
|
, C.DEL_DT
|
|
|
|
|
, C.DEL_RSN
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.LINK_ID = CC.CVLCPT_LINK_ID AND C.CRDN_ID = CC.CRDN_ID)
|
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="by == 'advancedOption1'">
|
|
|
|
|
AND FN_GET_CODE_NM('FIM003', C.CRDN_INPT_SE_CD) LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<otherwise>
|
|
|
|
|
AND C.${by} LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</otherwise>
|
|
|
|
|
</choose>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="crdnId != null">AND C.CRDN_ID = #{crdnId}</if>
|
|
|
|
|
<if test="taskSeCd != null">AND C.TASK_SE_CD = #{taskSeCd}</if>
|
|
|
|
|
<if test="vhrno != null">AND C.VHRNO LIKE CONCAT('%', #{vhrno}, '%')</if>
|
|
|
|
|
<if test="schDateFrom != null or schDateTo != null">
|
|
|
|
|
<if test="schDateOpt == 'crdnYmd'">
|
|
|
|
|
<if test="schDateFrom != null">AND C.CRDN_YMD <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND C.CRDN_YMD <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="schDateOpt == 'regDt'">
|
|
|
|
|
<if test="schDateFrom != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ >= ]]> #{schDateFrom} </if>
|
|
|
|
|
<if test="schDateTo != null">AND SUBSTR(C.REG_DT,1,8) <![CDATA[ <= ]]> #{schDateTo} </if>
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<include refid="utility.orderBy" />
|
|
|
|
|
<include refid="utility.paging-suffix"/>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectCrackdowns" parameterType="map" resultMap="crdnRow">
|
|
|
|
|
/* 단속자료 가져오기 (crdn06Mapper.selectCrackdowns) */
|
|
|
|
|
<include refid="selectCrackdown"/>
|
|
|
|
|