|
|
@ -32,7 +32,7 @@
|
|
|
|
, trr.rciv_amount -- 수납금액
|
|
|
|
, trr.rciv_amount -- 수납금액
|
|
|
|
, trr.rdcamt -- 감액
|
|
|
|
, trr.rdcamt -- 감액
|
|
|
|
, trr.adamt -- 가산금
|
|
|
|
, trr.adamt -- 가산금
|
|
|
|
, trr.vhcle_no -- 차량번호
|
|
|
|
, trr.vhrno -- 차량번호
|
|
|
|
, trr.vhcle_nm -- 차량명
|
|
|
|
, trr.vhcle_nm -- 차량명
|
|
|
|
, trr.vhcty_cl_code -- 차종분류코드
|
|
|
|
, trr.vhcty_cl_code -- 차종분류코드
|
|
|
|
, trr.vhcty_asort_code -- 차종종별코드
|
|
|
|
, trr.vhcty_asort_code -- 차종종별코드
|
|
|
@ -65,8 +65,8 @@
|
|
|
|
, IF(trr.reglt_se_code = '09', tecsd.violt_dtls_nm, teerc.violt_dtls_nm) AS violtDtlsNm -- 위반내용
|
|
|
|
, IF(trr.reglt_se_code = '09', tecsd.violt_dtls_nm, teerc.violt_dtls_nm) AS violtDtlsNm -- 위반내용
|
|
|
|
, (SELECT COUNT(reglt_id)
|
|
|
|
, (SELECT COUNT(reglt_id)
|
|
|
|
FROM tb_rt_reglt tgt
|
|
|
|
FROM tb_rt_reglt tgt
|
|
|
|
WHERE tgt.vhcle_no = trr.vhcle_no
|
|
|
|
WHERE tgt.vhrno = trr.vhrno
|
|
|
|
AND NOT NULLIF(trr.vhcle_no, '') IS NULL) AS vhcleNoCnt
|
|
|
|
AND NOT NULLIF(trr.vhrno, '') IS NULL) AS vhrnoCnt
|
|
|
|
, (SELECT COUNT(cmplt_id)
|
|
|
|
, (SELECT COUNT(cmplt_id)
|
|
|
|
FROM tb_ec_ctzn_sttemnt_cmplt tgt
|
|
|
|
FROM tb_ec_ctzn_sttemnt_cmplt tgt
|
|
|
|
WHERE EXISTS(SELECT 1
|
|
|
|
WHERE EXISTS(SELECT 1
|
|
|
@ -76,8 +76,8 @@
|
|
|
|
AND payer_id = trr.payer_id
|
|
|
|
AND payer_id = trr.payer_id
|
|
|
|
)
|
|
|
|
)
|
|
|
|
OR (
|
|
|
|
OR (
|
|
|
|
NOT NULLIF(trr.vhcle_no, '') IS NULL
|
|
|
|
NOT NULLIF(trr.vhrno, '') IS NULL
|
|
|
|
AND tgt.vhcle_no = trr.vhcle_no
|
|
|
|
AND tgt.vhrno = trr.vhrno
|
|
|
|
)
|
|
|
|
)
|
|
|
|
) AS minwonCnt
|
|
|
|
) AS minwonCnt
|
|
|
|
FROM tb_rt_reglt trr
|
|
|
|
FROM tb_rt_reglt trr
|
|
|
@ -120,8 +120,8 @@
|
|
|
|
<if test='sch_date_opt eq "regDt"'>
|
|
|
|
<if test='sch_date_opt eq "regDt"'>
|
|
|
|
AND SUBSTR(trr.reg_dt,1,8) BETWEEN REPLACE(#{sch_date_from},'-','') AND REPLACE(#{sch_date_to},'-','')
|
|
|
|
AND SUBSTR(trr.reg_dt,1,8) BETWEEN REPLACE(#{sch_date_from},'-','') AND REPLACE(#{sch_date_to},'-','')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test='vhcleNo != null and vhcleNo != ""'>
|
|
|
|
<if test='vhrno != null and vhrno != ""'>
|
|
|
|
AND INSTR(trr.vhcle_no, #{vhcleNo}) > 0
|
|
|
|
AND INSTR(trr.vhrno, #{vhrno}) > 0
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test='sysCode != null and sysCode != ""'>
|
|
|
|
<if test='sysCode != null and sysCode != ""'>
|
|
|
|
AND trr.sys_code = #{sysCode}
|
|
|
|
AND trr.sys_code = #{sysCode}
|
|
|
@ -136,7 +136,7 @@
|
|
|
|
ORDER BY trr.sys_code, trr.reglt_se_code
|
|
|
|
ORDER BY trr.sys_code, trr.reglt_se_code
|
|
|
|
, teerc.extrl_reglt_cntc_id
|
|
|
|
, teerc.extrl_reglt_cntc_id
|
|
|
|
, tecsd.interface_seq_n, tecsd.ctzn_sttemnt_detail_sn
|
|
|
|
, tecsd.interface_seq_n, tecsd.ctzn_sttemnt_detail_sn
|
|
|
|
, trr.reglt_de, trr.vhcle_no, trr.reglt_begin_time
|
|
|
|
, trr.reglt_de, trr.vhrno, trr.reglt_begin_time
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -198,7 +198,7 @@
|
|
|
|
, image_nmrs = IF(image_nmrs = #{imageNmrs}, image_nmrs, #{imageNmrs})
|
|
|
|
, image_nmrs = IF(image_nmrs = #{imageNmrs}, image_nmrs, #{imageNmrs})
|
|
|
|
, reglt_place = IF(reglt_place = #{regltPlace}, reglt_place, #{regltPlace})
|
|
|
|
, reglt_place = IF(reglt_place = #{regltPlace}, reglt_place, #{regltPlace})
|
|
|
|
, violt_stdg_cd = IF(violt_stdg_cd = #{violtStdgCd}, violt_stdg_cd, #{violtStdgCd})
|
|
|
|
, violt_stdg_cd = IF(violt_stdg_cd = #{violtStdgCd}, violt_stdg_cd, #{violtStdgCd})
|
|
|
|
, vhcle_no = IF(vhcle_no = #{vhcleNo}, vhcle_no, #{vhcleNo})
|
|
|
|
, vhrno = IF(vhrno = #{vhrno}, vhrno, #{vhrno})
|
|
|
|
, vhcle_nm = IF(vhcle_nm = #{vhcleNm}, vhcle_nm, #{vhcleNm})
|
|
|
|
, vhcle_nm = IF(vhcle_nm = #{vhcleNm}, vhcle_nm, #{vhcleNm})
|
|
|
|
, vin = IF(vin = #{vin}, vin, #{vin})
|
|
|
|
, vin = IF(vin = #{vin}, vin, #{vin})
|
|
|
|
, vhcty_asort_code = IF(vhcty_asort_code = #{vhctyAsortCode}, vhcty_asort_code, #{vhctyAsortCode})
|
|
|
|
, vhcty_asort_code = IF(vhcty_asort_code = #{vhctyAsortCode}, vhcty_asort_code, #{vhctyAsortCode})
|
|
|
@ -227,11 +227,11 @@
|
|
|
|
/* cmm-fims-crackdown-mysql-mapper|selectCtznAnswerTmplInfo-답변템플릿 정보 조회|julim */
|
|
|
|
/* cmm-fims-crackdown-mysql-mapper|selectCtznAnswerTmplInfo-답변템플릿 정보 조회|julim */
|
|
|
|
SELECT tcat.tmplat_id
|
|
|
|
SELECT tcat.tmplat_id
|
|
|
|
, tcat.tmplat_nm
|
|
|
|
, tcat.tmplat_nm
|
|
|
|
, REPLACE(tcat.prface, '[차량번호]', #{vhcleNo}) AS prface -- 머리말
|
|
|
|
, REPLACE(tcat.prface, '[차량번호]', #{vhrno}) AS prface -- 머리말
|
|
|
|
, REPLACE(tcat.tlface, '[차량번호]', #{vhcleNo}) AS tlface -- 꼬리말
|
|
|
|
, REPLACE(tcat.tlface, '[차량번호]', #{vhrno}) AS tlface -- 꼬리말
|
|
|
|
, tcatd.answer_se_code -- 답변구분코드
|
|
|
|
, tcatd.answer_se_code -- 답변구분코드
|
|
|
|
, tcatd.resn_code -- 사유코드
|
|
|
|
, tcatd.resn_code -- 사유코드
|
|
|
|
, REPLACE(tcatd.answer_cn, '[차량번호]', #{vhcleNo}) AS answerCn -- 답변내용
|
|
|
|
, REPLACE(tcatd.answer_cn, '[차량번호]', #{vhrno}) AS answerCn -- 답변내용
|
|
|
|
, tcatd.answer_yn -- 답변여부
|
|
|
|
, tcatd.answer_yn -- 답변여부
|
|
|
|
, tcatd.del_yn -- 삭제여부
|
|
|
|
, tcatd.del_yn -- 삭제여부
|
|
|
|
FROM tb_cmm_ans_tmpl tcat
|
|
|
|
FROM tb_cmm_ans_tmpl tcat
|
|
|
@ -327,7 +327,7 @@
|
|
|
|
, instt_code
|
|
|
|
, instt_code
|
|
|
|
, content
|
|
|
|
, content
|
|
|
|
, gubun
|
|
|
|
, gubun
|
|
|
|
, vhcle_no
|
|
|
|
, vhrno
|
|
|
|
, reg_dt
|
|
|
|
, reg_dt
|
|
|
|
, rgtr
|
|
|
|
, rgtr
|
|
|
|
) VALUES (
|
|
|
|
) VALUES (
|
|
|
@ -336,7 +336,7 @@
|
|
|
|
, #{insttCode}
|
|
|
|
, #{insttCode}
|
|
|
|
, #{content}
|
|
|
|
, #{content}
|
|
|
|
, #{gubun}
|
|
|
|
, #{gubun}
|
|
|
|
, #{vhcleNo}
|
|
|
|
, #{vhrno}
|
|
|
|
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
, DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
, #{rgtr}
|
|
|
|
, #{rgtr}
|
|
|
|
)
|
|
|
|
)
|
|
|
@ -426,7 +426,7 @@
|
|
|
|
, tecsc.instt_code
|
|
|
|
, tecsc.instt_code
|
|
|
|
, tecsc.content
|
|
|
|
, tecsc.content
|
|
|
|
, tecsc.gubun
|
|
|
|
, tecsc.gubun
|
|
|
|
, tecsc.vhcle_no
|
|
|
|
, tecsc.vhrno
|
|
|
|
, tecsc.reg_dt
|
|
|
|
, tecsc.reg_dt
|
|
|
|
, tecsc.rgtr
|
|
|
|
, tecsc.rgtr
|
|
|
|
, tecsc.mdfcn_dt
|
|
|
|
, tecsc.mdfcn_dt
|
|
|
@ -441,23 +441,23 @@
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test='gubun eq "1"'>
|
|
|
|
<if test='gubun eq "1"'>
|
|
|
|
AND tecsc.vhcle_no = #{vhcleNo}
|
|
|
|
AND tecsc.vhrno = #{vhrno}
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
ORDER BY tecsc.reg_dt DESC
|
|
|
|
ORDER BY tecsc.reg_dt DESC
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCrackdownVhcleNoCnt" resultType="int">
|
|
|
|
<select id="selectCrackdownVhrnoCnt" resultType="int">
|
|
|
|
/* cmm-fims-crackdown-mysql-mapper|selectCrackdownVhcleNoCnt-단속횟수 조회|julim */
|
|
|
|
/* cmm-fims-crackdown-mysql-mapper|selectCrackdownVhrnoCnt-단속횟수 조회|julim */
|
|
|
|
SELECT COUNT(reglt_id)
|
|
|
|
SELECT COUNT(reglt_id)
|
|
|
|
FROM tb_rt_reglt trr
|
|
|
|
FROM tb_rt_reglt trr
|
|
|
|
WHERE trr.vhcle_no = #{vhcle_no}
|
|
|
|
WHERE trr.vhrno = #{vhrno}
|
|
|
|
AND NOT NULLIF(#{vhvle_no}, '') IS NULL
|
|
|
|
AND NOT NULLIF(#{vhvle_no}, '') IS NULL
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectCrackdownPhotoLayout" resultType="kr.xit.fims.biz.cmm.NtriDTO$CrackdownPhotoLayout">
|
|
|
|
<select id="selectCrackdownPhotoLayout" resultType="kr.xit.fims.biz.cmm.NtriDTO$CrackdownPhotoLayout">
|
|
|
|
/* cmm-fims-crackdown-mysql-mapper|selectCrackdownPhotoLayout-주정차/전용차로 단속사진전송 정보 레이아웃 조회|julim */
|
|
|
|
/* cmm-fims-crackdown-mysql-mapper|selectCrackdownPhotoLayout-주정차/전용차로 단속사진전송 정보 레이아웃 조회|julim */
|
|
|
|
SELECT CONCAT(trr.reglt_de, trr.reglt_begin_time) AS regltDeTime -- 단속일시
|
|
|
|
SELECT CONCAT(trr.reglt_de, trr.reglt_begin_time) AS regltDeTime -- 단속일시
|
|
|
|
, trr.vhcle_no -- 차량번호
|
|
|
|
, trr.vhrno -- 차량번호
|
|
|
|
, trr.reglt_se_code -- 단속구분코드
|
|
|
|
, trr.reglt_se_code -- 단속구분코드
|
|
|
|
, teerc.reglt_eqpmn_manage_no -- 단속장비관리번호
|
|
|
|
, teerc.reglt_eqpmn_manage_no -- 단속장비관리번호
|
|
|
|
, trr.violt_dtls_code -- 위반내역코드
|
|
|
|
, trr.violt_dtls_code -- 위반내역코드
|
|
|
@ -473,7 +473,7 @@
|
|
|
|
, trr.gps_x
|
|
|
|
, trr.gps_x
|
|
|
|
, trr.gps_y
|
|
|
|
, trr.gps_y
|
|
|
|
, '' AS vhclNoX -- 자동차등록번호판위치 X축
|
|
|
|
, '' AS vhclNoX -- 자동차등록번호판위치 X축
|
|
|
|
, '' AS vhcleNoY -- 자동차등록번호판위치 Y축
|
|
|
|
, '' AS vhrnoY -- 자동차등록번호판위치 Y축
|
|
|
|
, trr.image_nmrs -- 사진갯수
|
|
|
|
, trr.image_nmrs -- 사진갯수
|
|
|
|
, trr.image_se_code -- 이미지구분
|
|
|
|
, trr.image_se_code -- 이미지구분
|
|
|
|
, 'jpg' AS fileExtsn -- 확장자
|
|
|
|
, 'jpg' AS fileExtsn -- 확장자
|
|
|
|