|
|
|
@ -76,8 +76,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, C.CRDN_REG_SE_CD <!-- 단속 등록 구분 코드 -->
|
|
|
|
|
, GET_CODE_NM('FIM026', C.CRDN_REG_SE_CD) AS CRDN_REG_SE_NM
|
|
|
|
|
, C.CRDN_INPT_SE_CD <!-- 단속 입력 구분 코드 -->
|
|
|
|
|
, C.LINK_TBL_NM <!-- 연계 테이블 명 -->
|
|
|
|
|
, C.LINK_ID <!-- 연계 ID -->
|
|
|
|
|
, C.CVLCPT_LINK_TBL_NM <!-- 민원 연계 테이블 명 -->
|
|
|
|
|
, C.RTPYR_ID <!-- 납부자 ID -->
|
|
|
|
|
, C.CRDN_YMD <!-- 단속 일자 -->
|
|
|
|
|
, C.CRDN_TM <!-- 단속 시각 -->
|
|
|
|
@ -161,7 +160,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_TEAM T ON (CA.TEAM_ID = T.TEAM_ID)
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
|
|
|
|
|
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID)
|
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
@ -247,7 +246,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, C.VHRNO <!-- 차량번호 -->
|
|
|
|
|
, C.CRDN_PLC
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
AND C.SGG_CD = #{sggCd}
|
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
@ -313,10 +312,10 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, CC.CVLCPT_PRCS_PRNMNT_DT <!-- 민원 처리 예정 일시 -->
|
|
|
|
|
, CC.CVLCPT_APLY_CN <!-- 민원 신청 내용 -->
|
|
|
|
|
, CC.CVLCPT_APLY_SE_CD <!-- 민원 신청 구분코드 -->
|
|
|
|
|
, C.LINK_TBL_NM <!-- 연계 테이블 명 -->
|
|
|
|
|
, C.LINK_ID <!-- 연계 ID -->
|
|
|
|
|
, C.CVLCPT_LINK_TBL_NM <!-- 민원 연계 테이블 명 -->
|
|
|
|
|
, C.CVLCPT_LINK_ID <!-- 민원 연계 ID -->
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
WHERE C.DEL_YN = 'N' AND CC.DEL_YN = 'N'
|
|
|
|
|
AND C.CRDN_ID = #{crdnId}
|
|
|
|
|
</select>
|
|
|
|
@ -337,8 +336,8 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, C.VHCL_NM <!-- 차량명 -->
|
|
|
|
|
, C.VHCL_COLR <!-- 차량색상 -->
|
|
|
|
|
, C.VIN <!-- 차대번호 -->
|
|
|
|
|
, C.LINK_TBL_NM <!-- 연계 테이블 명 -->
|
|
|
|
|
, C.LINK_ID <!-- 연계 아이디 -->
|
|
|
|
|
, C.CVLCPT_LINK_TBL_NM <!-- 민원 연계 테이블 명 -->
|
|
|
|
|
, C.CVLCPT_LINK_ID <!-- 민원 연계 아이디 -->
|
|
|
|
|
, CA.CRDN_SE_CD <!-- 단속 구분 코드 -->
|
|
|
|
|
, CA.DTL_CRDN_PLC <!-- 상세 단속 장소 -->
|
|
|
|
|
, CA.CRDN_SPAREA_CD <!-- 단속 특별구역 코드 -->
|
|
|
|
@ -361,7 +360,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, PA.DTL_ADDR <!-- 상세 주소 -->
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_PAYER_ADDR PA ON (C.RTPYR_ID = PA.RTPYR_ID AND C.ADDR_SN = PA.ADDR_SN)
|
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
@ -444,7 +443,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
END) AS COPY_EXIST_YN <!-- 복사 자료 존재 여부 -->
|
|
|
|
|
, CC.CVLCPT_PRCS_CD <!-- 처리 구분 코드 -->
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
|
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
AND C.SGG_CD = #{sggCd}
|
|
|
|
@ -511,7 +510,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, CC.CVLCPT_APLY_CN <!-- 민원 신청 내용 -->
|
|
|
|
|
, CC.CVLCPT_PRCS_RSLT_CN <!-- 민원 처리 결과 내용 -->
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
AND C.CRDN_ID = #{crdnId}
|
|
|
|
|
</select>
|
|
|
|
@ -534,7 +533,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, CC.CVLCPT_PRCS_RSLT_CN <!-- 민원 처리 결과 내용 -->
|
|
|
|
|
, C.LINK_TBL_NM
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
INNER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.CVLCPT_LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
|
WHERE C.CRDN_ID IN (<foreach collection="crdnIds" item="crdnId" separator=",">#{crdnId}</foreach>)
|
|
|
|
|
AND C.DEL_YN = 'N'
|
|
|
|
|
AND C.CRDN_STTS_CD IN ('21','81','83')
|
|
|
|
|