|
|
@ -91,6 +91,7 @@ LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.
|
|
|
|
LEFT OUTER JOIN TB_LEVY_EXCL LE ON (C.CRDN_ID = LE.CRDN_ID AND LE.DEL_YN = 'N')
|
|
|
|
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)
|
|
|
|
LEFT OUTER JOIN TB_LEVY L ON (C.CRDN_ID = L.CRDN_ID)
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
|
|
|
AND C.SGG_CD = #{sggCd}
|
|
|
|
<if test="crdnId != null">AND C.CRDN_ID = #{crdnId}</if>
|
|
|
|
<if test="crdnId != null">AND C.CRDN_ID = #{crdnId}</if>
|
|
|
|
<if test="taskSeCd != null">AND C.TASK_SE_CD = #{taskSeCd}</if>
|
|
|
|
<if test="taskSeCd != null">AND C.TASK_SE_CD = #{taskSeCd}</if>
|
|
|
|
<if test="vhrno != null">AND C.VHRNO LIKE CONCAT('%', #{vhrno}, '%')</if>
|
|
|
|
<if test="vhrno != null">AND C.VHRNO LIKE CONCAT('%', #{vhrno}, '%')</if>
|
|
|
@ -164,6 +165,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
, C.DEL_DT
|
|
|
|
, C.DEL_DT
|
|
|
|
FROM TB_CRDN C
|
|
|
|
FROM TB_CRDN C
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
|
|
|
AND C.SGG_CD = #{sggCd}
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
AND C.RGTR = #{currentUserId}
|
|
|
|
AND C.RGTR = #{currentUserId}
|
|
|
|
AND SUBSTR(C.REG_DT,1,8) = <include refid="utility.today" />
|
|
|
|
AND SUBSTR(C.REG_DT,1,8) = <include refid="utility.today" />
|
|
|
@ -193,6 +195,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
FROM TB_CRDN C
|
|
|
|
FROM TB_CRDN C
|
|
|
|
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
|
|
|
|
INNER JOIN TB_CRDN_ADI CA ON (C.CRDN_ID = CA.CRDN_ID)
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
|
|
|
AND C.SGG_CD = #{sggCd}
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
<if test="schCrdnYmdFrom != null or schCrdnYmdTo != null">
|
|
|
|
<if test="schCrdnYmdFrom != null or schCrdnYmdTo != null">
|
|
|
|
<if test="schCrdnYmdFrom != null">AND C.CRDN_YMD <![CDATA[ >= ]]> #{schCrdnYmdFrom} </if>
|
|
|
|
<if test="schCrdnYmdFrom != null">AND C.CRDN_YMD <![CDATA[ >= ]]> #{schCrdnYmdFrom} </if>
|
|
|
@ -266,6 +269,7 @@ SELECT GROUP_CONCAT(C.CRDN_ID) AS CRDN_ID_LIST <!-- 단속 ID -->
|
|
|
|
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
|
|
|
|
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
|
|
|
AND C.SGG_CD = #{sggCd}
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
AND C.VHRNO != ''
|
|
|
|
AND C.VHRNO != ''
|
|
|
|
<if test="schOnlySamePlace == 'on'">
|
|
|
|
<if test="schOnlySamePlace == 'on'">
|
|
|
@ -344,6 +348,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
|
|
|
|
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
LEFT OUTER JOIN TB_PAYER P ON (C.RTPYR_ID = P.RTPYR_ID)
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
|
|
|
AND C.SGG_CD = #{sggCd}
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
AND C.CRDN_ID IN (<foreach collection="crdnIDs" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>)
|
|
|
|
AND C.CRDN_ID IN (<foreach collection="crdnIDs" item="CRDN_ID" separator=",">#{CRDN_ID}</foreach>)
|
|
|
|
<include refid="utility.sortBy" />
|
|
|
|
<include refid="utility.sortBy" />
|
|
|
@ -373,6 +378,7 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
|
|
|
|
LEFT OUTER JOIN TB_TEAM_INFO TI ON (CA.TEAM_ID = TI.TEAM_ID)
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
LEFT OUTER JOIN TB_CRDN_CVLCPT CC ON (C.CVLCPT_LINK_YN = 'Y' AND C.LINK_ID = CC.CVLCPT_LINK_ID)
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
|
|
|
AND C.SGG_CD = #{sggCd}
|
|
|
|
AND C.TASK_SE_CD = 'DPV'
|
|
|
|
AND C.TASK_SE_CD = 'DPV'
|
|
|
|
AND CA.PARKNG_PSBLTY_RSLT_CD = '0'
|
|
|
|
AND CA.PARKNG_PSBLTY_RSLT_CD = '0'
|
|
|
|
AND C.CRDN_STTS_CD = '21'
|
|
|
|
AND C.CRDN_STTS_CD = '21'
|
|
|
|