|
|
@ -51,12 +51,12 @@
|
|
|
|
, MM_DLGB
|
|
|
|
, MM_DLGB
|
|
|
|
, MM_INGB
|
|
|
|
, MM_INGB
|
|
|
|
, MM_DATE
|
|
|
|
, MM_DATE
|
|
|
|
, (CASE WHEN LENGTH(MM_TIME) = 4 THEN CONCAT(MM_TIME, '00')
|
|
|
|
, (CASE WHEN LENGTH(MM_TIME) = 4 THEN CONCAT(MM_TIME, '00') ELSE MM_TIME END) AS MM_TIME
|
|
|
|
ELSE MM_TIME END) AS MM_TIME
|
|
|
|
|
|
|
|
, MM_LAWGB
|
|
|
|
, MM_LAWGB
|
|
|
|
, (SELECT VLTN_ID FROM TB_VLTN X
|
|
|
|
, (SELECT VLTN_ID FROM TB_VLTN X
|
|
|
|
WHERE X.VLTN_CD = LPAD(MM_LAWGB, 2, '0')
|
|
|
|
WHERE X.VLTN_CD = LPAD(MM_LAWGB, 2, '0')
|
|
|
|
AND X.SGG_CD = MM_SGGCODE AND X.TASK_SE_CD = MM_TASKGB) AS VLTN_ID
|
|
|
|
AND X.SGG_CD = MM_SGGCODE
|
|
|
|
|
|
|
|
AND X.TASK_SE_CD = MM_TASKGB) AS VLTN_ID
|
|
|
|
, MM_SGNM
|
|
|
|
, MM_SGNM
|
|
|
|
, MM_SGTEL
|
|
|
|
, MM_SGTEL
|
|
|
|
, MM_SGCONT
|
|
|
|
, MM_SGCONT
|
|
|
@ -93,8 +93,7 @@
|
|
|
|
, MM_VIDEOFILENM
|
|
|
|
, MM_VIDEOFILENM
|
|
|
|
, MM_SAFEZONE
|
|
|
|
, MM_SAFEZONE
|
|
|
|
, MM_VIORCNT
|
|
|
|
, MM_VIORCNT
|
|
|
|
, (CASE WHEN LENGTH(MM_TIME2) = 4 THEN CONCAT(MM_TIME2, '00')
|
|
|
|
, (CASE WHEN LENGTH(MM_TIME2) = 4 THEN CONCAT(MM_TIME2, '00') ELSE MM_TIME2 END) AS MM_TIME2
|
|
|
|
ELSE MM_TIME2 END) AS MM_TIME2
|
|
|
|
|
|
|
|
, MM_CARNAME
|
|
|
|
, MM_CARNAME
|
|
|
|
, MM_CARCOLOR
|
|
|
|
, MM_CARCOLOR
|
|
|
|
, MM_CARFUEL
|
|
|
|
, MM_CARFUEL
|
|
|
@ -117,6 +116,8 @@
|
|
|
|
, OM_INGB
|
|
|
|
, OM_INGB
|
|
|
|
, OM_INDT
|
|
|
|
, OM_INDT
|
|
|
|
, OM_BDCODE
|
|
|
|
, OM_BDCODE
|
|
|
|
|
|
|
|
, MC_LVY_KEY
|
|
|
|
|
|
|
|
, (CASE WHEN MC_LVY_KEY IS NOT NULL THEN 'Y' ELSE 'N' END) AS NIS_LINK_YN
|
|
|
|
FROM VW_CP_MAIN
|
|
|
|
FROM VW_CP_MAIN
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="schCrdnYmdFrom != null">
|
|
|
|
<if test="schCrdnYmdFrom != null">
|
|
|
@ -322,6 +323,8 @@
|
|
|
|
, C.FFNLG_CRDN_AMT <!-- 과태료 단속 금액 -->
|
|
|
|
, C.FFNLG_CRDN_AMT <!-- 과태료 단속 금액 -->
|
|
|
|
, C.CRDN_STTS_CD <!-- 단속 상태 코드 -->
|
|
|
|
, C.CRDN_STTS_CD <!-- 단속 상태 코드 -->
|
|
|
|
, (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM <!-- 단속 상태 명 -->
|
|
|
|
, (SELECT GET_CODE_NM('FIM010', C.CRDN_STTS_CD) FROM DUAL) AS CRDN_STTS_NM <!-- 단속 상태 명 -->
|
|
|
|
|
|
|
|
, C.NXRP_CRDN_LINK_YN <!-- 세외수입 단속 연계 여부 -->
|
|
|
|
|
|
|
|
, C.NXRP_ACB_KEY <!-- 세외수입 대장 키 -->
|
|
|
|
, V.VLTN_ID <!-- 위반 ID -->
|
|
|
|
, V.VLTN_ID <!-- 위반 ID -->
|
|
|
|
, V.VLTN_CD <!-- 위반 코드 -->
|
|
|
|
, V.VLTN_CD <!-- 위반 코드 -->
|
|
|
|
, V.VLTN_ARTCL <!-- 위반 항목 -->
|
|
|
|
, V.VLTN_ARTCL <!-- 위반 항목 -->
|
|
|
@ -376,6 +379,9 @@
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="schVhrno != null">
|
|
|
|
<if test="schVhrno != null">
|
|
|
|
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
|
|
|
|
AND C.VHRNO = #{schVhrno} <!-- 차량번호 -->
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="nxrpCrdnLinkYn != null">
|
|
|
|
|
|
|
|
AND C.NXRP_CRDN_LINK_YN = #{nxrpCrdnLinkYn} <!-- 세외수입 단속 연계 여부 -->
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="rtpyrNos != null">
|
|
|
|
<if test="rtpyrNos != null">
|
|
|
|
AND P.RTPYR_NO IN ( <!-- 납부자 번호s -->
|
|
|
|
AND P.RTPYR_NO IN ( <!-- 납부자 번호s -->
|
|
|
|