|
|
@ -192,7 +192,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
, C.DEL_DT
|
|
|
|
, C.DEL_DT
|
|
|
|
, C.DEL_RSN
|
|
|
|
, C.DEL_RSN
|
|
|
|
FROM TB_CRDN C
|
|
|
|
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)
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID)
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
@ -235,7 +235,11 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
|
|
|
|
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 단속 일시 -->
|
|
|
|
, C.VHRNO <!-- 차량번호 -->
|
|
|
|
, C.VHRNO <!-- 차량번호 -->
|
|
|
|
, C.CRDN_STDG_NM <!-- 단속 법정동 명 -->
|
|
|
|
, C.CRDN_STDG_NM <!-- 단속 법정동 명 -->
|
|
|
|
<!-- 신고/단속자 -->
|
|
|
|
, IF(CC.CVLCPT_APLCNT_NM != '', CC.CVLCPT_APLCNT_NM,
|
|
|
|
|
|
|
|
IF(TI.TEAMER_1 != '', TI.TEAMER_1,
|
|
|
|
|
|
|
|
IF(TI.TEAMER_2 != '', TI.TEAMER_2,
|
|
|
|
|
|
|
|
IF(TI.TEAMER_3 != '', TI.TEAMER_3,
|
|
|
|
|
|
|
|
TI.TEAMER_4)))) AS APLCNT_CRDN_NM <!-- 신고/단속자 -->
|
|
|
|
, CC.CVLCPT_APLCNT_NM <!-- 민원 신청인 명 -->
|
|
|
|
, CC.CVLCPT_APLCNT_NM <!-- 민원 신청인 명 -->
|
|
|
|
, C.TEAM_ID <!-- 조 ID -->
|
|
|
|
, C.TEAM_ID <!-- 조 ID -->
|
|
|
|
, C.VLTN_ID <!-- 위반 ID -->
|
|
|
|
, C.VLTN_ID <!-- 위반 ID -->
|
|
|
@ -254,7 +258,8 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
, C.DEL_DT
|
|
|
|
, C.DEL_DT
|
|
|
|
, C.DEL_RSN
|
|
|
|
, C.DEL_RSN
|
|
|
|
FROM TB_CRDN C
|
|
|
|
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)
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID)
|
|
|
|
|
|
|
|
LEFT OUTER JOIN TB_TEAM_INFO TI ON (C.TEAM_ID = TI.TEAM_ID)
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
@ -305,7 +310,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
, C.DEL_DT
|
|
|
|
, C.DEL_DT
|
|
|
|
, C.DEL_RSN
|
|
|
|
, C.DEL_RSN
|
|
|
|
FROM TB_CRDN C
|
|
|
|
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)
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CRDN_ID = CC.CRDN_ID)
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
<if test="by != null and by != '' and term != null">
|
|
|
|
<choose>
|
|
|
|
<choose>
|
|
|
|