|
|
@ -161,7 +161,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
, CC.CVLCPT_PRCS_PRNMNT_DT <!-- 민원 처리 예정 일시 -->
|
|
|
|
, CC.CVLCPT_PRCS_PRNMNT_DT <!-- 민원 처리 예정 일시 -->
|
|
|
|
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
|
|
|
|
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
|
|
|
|
, C.ATCH_FILE_CNT <!-- 첨부 파일 수 -->
|
|
|
|
, C.ATCH_FILE_CNT <!-- 첨부 파일 수 -->
|
|
|
|
, (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) ASVLTN_ARTCL <!-- 위반내용 -->
|
|
|
|
, (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) AS VLTN_ARTCL <!-- 위반내용 -->
|
|
|
|
, CC.CVLCPT_RCPT_NO <!-- 민원 접수 번호 -->
|
|
|
|
, CC.CVLCPT_RCPT_NO <!-- 민원 접수 번호 -->
|
|
|
|
, C.VHRNO <!-- 차량번호 -->
|
|
|
|
, C.VHRNO <!-- 차량번호 -->
|
|
|
|
, C.CRDN_PLC
|
|
|
|
, C.CRDN_PLC
|
|
|
@ -171,7 +171,44 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
AND C.CRDN_STTS_CD = '01'
|
|
|
|
AND C.CRDN_STTS_CD = '01'
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
|
|
|
<choose>
|
|
|
|
|
|
|
|
<when test="by == 'crdnRegSeCd'">
|
|
|
|
|
|
|
|
AND FN_GET_CODE_NM('FIM026', C.CRDN_REG_SE_CD) LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptAplcntNm'">
|
|
|
|
|
|
|
|
AND CC.CVLCPT_APLCNT_NM LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptPrcsPicNm'">
|
|
|
|
|
|
|
|
AND CC.CVLCPT_PRCS_PIC_NM LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptPrcsPicTelno'">
|
|
|
|
|
|
|
|
AND CC.CVLCPT_PRCS_PIC_TELNO LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptRcptYmd'">
|
|
|
|
|
|
|
|
AND CC.CVLCPT_RCPT_YMD = REPLACE(#{term},'-','')
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptPrcsPrnmntDt'">
|
|
|
|
|
|
|
|
AND SUBSTR(CC.CVLCPT_PRCS_PRNMNT_DT,1,8) = REPLACE(#{term},'-','')
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<when test="by == 'crdnYmd'">
|
|
|
|
|
|
|
|
AND C.CRDN_YMD = REPLACE(#{term},'-','')
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<when test="by == 'atchFileCnt'">
|
|
|
|
|
|
|
|
AND C.ATCH_FILE_CNT = #{term}
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<when test="by == 'vltnArtcl'">
|
|
|
|
|
|
|
|
AND (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<when test="by == 'cvlcptRcptNo'">
|
|
|
|
|
|
|
|
AND CC.CVLCPT_RCPT_NO LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<when test="by == 'vhrno'">
|
|
|
|
|
|
|
|
AND C.VHRNO LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
|
|
|
</when>
|
|
|
|
|
|
|
|
<otherwise>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</otherwise>
|
|
|
|
|
|
|
|
</choose>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null">
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null">
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ >= ]]> #{schCvlcptRcptYmdFrom} </if>
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ >= ]]> #{schCvlcptRcptYmdFrom} </if>
|
|
|
@ -189,7 +226,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
<include refid="utility.paging-prefix"/>
|
|
|
|
<include refid="utility.paging-prefix"/>
|
|
|
|
SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
, C.CRDN_REG_SE_CD <!-- 단속 등록 구분 코드 -->
|
|
|
|
, C.CRDN_REG_SE_CD <!-- 단속 등록 구분 코드 -->
|
|
|
|
, (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) ASVLTN_ARTCL <!-- 위반내용 -->
|
|
|
|
, (SELECT VLTN_ARTCL FROM TB_VLTN_INFO WHERE VLTN_ID = C.VLTN_ID) AS VLTN_ARTCL <!-- 위반내용 -->
|
|
|
|
, CC.CVLCPT_APLCNT_NM <!-- 민원 신청인 명 -->
|
|
|
|
, CC.CVLCPT_APLCNT_NM <!-- 민원 신청인 명 -->
|
|
|
|
, CC.CVLCPT_PRCS_PIC_NM <!-- 민원 처리 담당자 명 -->
|
|
|
|
, CC.CVLCPT_PRCS_PIC_NM <!-- 민원 처리 담당자 명 -->
|
|
|
|
, (SELECT TELNO FROM TB_USER WHERE USER_ID = CC.CVLCPT_PRCS_PIC) AS CVLCPT_PRCS_PIC_TELNO <!-- 민원 처리 담당자 전화번호 -->
|
|
|
|
, (SELECT TELNO FROM TB_USER WHERE USER_ID = CC.CVLCPT_PRCS_PIC) AS CVLCPT_PRCS_PIC_TELNO <!-- 민원 처리 담당자 전화번호 -->
|
|
|
@ -209,7 +246,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
AND C.CRDN_REG_SE_CD = '02'
|
|
|
|
AND C.CRDN_REG_SE_CD = '02'
|
|
|
|
AND CC.CVLCPT_PRCS_CD IN ('02','03','04')
|
|
|
|
AND CC.CVLCPT_PRCS_CD IN ('02','03','04')
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
|
|
|
|
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null">
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null or schCvlcptRcptYmdTo != null">
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ >= ]]> #{schCvlcptRcptYmdFrom} </if>
|
|
|
|
<if test="schCvlcptRcptYmdFrom != null">AND CC.CVLCPT_RCPT_YMD <![CDATA[ >= ]]> #{schCvlcptRcptYmdFrom} </if>
|
|
|
|