|
|
|
@ -363,7 +363,13 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
IF(TI.TEAMER_2 != '', TI.TEAMER_2,
|
|
|
|
|
IF(TI.TEAMER_3 != '', TI.TEAMER_3,
|
|
|
|
|
TI.TEAMER_4)))) AS APLCNT_CRDN_NM <!-- 신고/단속자 -->
|
|
|
|
|
, C.FFNLG_AMT <!-- 잔액 -->
|
|
|
|
|
, C.CRDN_STTS_CD <!-- 처리상태 -->
|
|
|
|
|
, C.LEVY_AMT <!-- 부과금액 -->
|
|
|
|
|
, C.ADVNTCE_LEVY_AMT <!-- 사전통지부과금액 -->
|
|
|
|
|
, C.MINUS_AMT <!-- 감경금액 -->
|
|
|
|
|
, C.ADTN_AMT <!-- 가산금액 -->
|
|
|
|
|
, C.RCVMT_AMT <!-- 수납금액 -->
|
|
|
|
|
, 0 AS BLNC <!-- 잔액 -->
|
|
|
|
|
, C.ATCH_FILE_CNT <!-- 사진건수 -->
|
|
|
|
|
, C.CRDN_SN <!-- 단속 일련번호 -->
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
@ -393,9 +399,6 @@ AND IF(CC.CVLCPT_APLCNT_NM != '', CC.CVLCPT_APLCNT_NM,
|
|
|
|
|
IF(TI.TEAMER_2 != '', TI.TEAMER_2,
|
|
|
|
|
IF(TI.TEAMER_3 != '', TI.TEAMER_3,
|
|
|
|
|
TI.TEAMER_4)))) LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'ffnlgAmt'">
|
|
|
|
|
AND C.FFNLG_AMT = REPLACE(#{term},',','')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'atchFileCnt'">
|
|
|
|
|
AND C.ATCH_FILE_CNT = #{term}
|
|
|
|
@ -433,12 +436,16 @@ SELECT C.CRDN_ID <!-- 단속 ID -->
|
|
|
|
|
, RD.RDUCT_RSN_CD <!-- 감액사유 -->
|
|
|
|
|
, CONCAT(C.CRDN_YMD,'',C.CRDN_TM) AS CRDN_YMD_TM <!-- 접수(위반)일시 -->
|
|
|
|
|
, C.VHRNO <!-- 차량번호 -->
|
|
|
|
|
, L.RDCAMT_PCPTAX <!-- 감액금액 -->
|
|
|
|
|
, L.SUM_AMT <!-- 잔액 -->
|
|
|
|
|
, RD.RDUCT_AMT <!-- 감액금액 -->
|
|
|
|
|
, C.LEVY_AMT <!-- 부과금액 -->
|
|
|
|
|
, C.ADVNTCE_LEVY_AMT <!-- 사전통지부과금액 -->
|
|
|
|
|
, C.MINUS_AMT <!-- 감경금액 -->
|
|
|
|
|
, C.ADTN_AMT <!-- 가산금액 -->
|
|
|
|
|
, C.RCVMT_AMT <!-- 수납금액 -->
|
|
|
|
|
, 0 AS BLNC <!-- 잔액 -->
|
|
|
|
|
, RD.ETC_CN AS RDUCT_ETC_CN <!-- 감액특기사항 -->
|
|
|
|
|
, C.CRDN_STTS_CD <!-- 처리상태 -->
|
|
|
|
|
FROM TB_CRDN C
|
|
|
|
|
LEFT OUTER JOIN TB_LEVY L ON (C.LEVY_ID = L.LEVY_ID)
|
|
|
|
|
INNER JOIN TB_RDUCT RD ON (C.CRDN_ID = RD.CRDN_ID)
|
|
|
|
|
WHERE C.DEL_YN = 'N'
|
|
|
|
|
AND C.TASK_SE_CD = #{taskSeCd}
|
|
|
|
@ -456,11 +463,8 @@ AND C.CRDN_YMD = REPLACE(#{term},'-','')
|
|
|
|
|
<when test="by == 'vhrno'">
|
|
|
|
|
AND C.VHRNO = REPLACE(#{term},'-','')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'rdcamtPcptax'">
|
|
|
|
|
AND L.RDCAMT_PCPTAX = REPLACE(#{term},',','')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'sumAmt'">
|
|
|
|
|
AND L.SUM_AMT = REPLACE(#{term},',','')
|
|
|
|
|
<when test="by == 'rductAmt'">
|
|
|
|
|
AND RD.RDUCT_AMT = REPLACE(#{term},',','')
|
|
|
|
|
</when>
|
|
|
|
|
<when test="by == 'rductEtcCn'">
|
|
|
|
|
AND RD.ETC_CN LIKE CONCAT('%', #{term}, '%')
|
|
|
|
|