민원내용에 따른 과태료구분 쿼리 수정

main
이범준 1 year ago
parent 42ee3edf37
commit 9be74fff86

@ -20,7 +20,8 @@ SELECT CASE WHEN A.SGG_CD = B.SGG_CD THEN A.SGG_CD ELSE 'DIFF' END SGG_CD
<select id="selectViolationCodes" parameterType="map" resultType="dataobject">/* importMapper.selectViolationCodes(위반내용 관련 코드 조회) */
SELECT CASE WHEN VLTN LIKE CONCAT('%', '전용차로', '%') THEN 'BPV'
WHEN VLTN LIKE CONCAT('%', '장애인', '%') THEN 'DPV'
WHEN VLTN LIKE CONCAT('%', '장애인', '%')
AND VLTN NOT LIKE CONCAT('%', '보호구역', '%') THEN 'DPV'
WHEN VLTN LIKE CONCAT('%', '전기차', '%')
OR VLTN LIKE CONCAT('%', '친환경차', '%') THEN 'ECA'
WHEN VLTN LIKE CONCAT('%', '밤샘', '%') THEN 'TPV'

Loading…
Cancel
Save