|
|
|
@ -25,22 +25,33 @@
|
|
|
|
|
, trr.regist_dt
|
|
|
|
|
, trr.spcmnt_matter
|
|
|
|
|
, trr.reglt_process_sttus_code
|
|
|
|
|
-- , tecsd.interface_seq_n
|
|
|
|
|
FROM tb_rt_reglt trr
|
|
|
|
|
-- JOIN tb_ec_ctzn_sttemnt_detail tecsd
|
|
|
|
|
-- ON trr.reglt_id = tecsd.reglt_id
|
|
|
|
|
LEFT OUTER JOIN tb_rt_erpp tre
|
|
|
|
|
ON trr.reglt_id = tre.reglt_id
|
|
|
|
|
</sql>
|
|
|
|
|
<!--
|
|
|
|
|
/* TODO : 차적조회를 안하고 바로 자료 전송 하여 payer를 알수 없음
|
|
|
|
|
JOIN tb_rt_payer trp
|
|
|
|
|
ON trr.payer_id = trp.payer_id
|
|
|
|
|
*/
|
|
|
|
|
LEFT OUTER JOIN tb_rt_erpp tre
|
|
|
|
|
ON trr.reglt_id = tre.reglt_id
|
|
|
|
|
</sql>
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectRtReglts" resultType="kr.xit.fims.biz.rt.model.RtDTO$Reglt">
|
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|selectRtReglts-단속 목록 조회|julim */
|
|
|
|
|
/** 단속자료 단건 조회 */
|
|
|
|
|
<include refid="sqlRtReglt"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test='sch_date_opt eq "regltDe"'>
|
|
|
|
|
AND trr.reglt_de BETWEEN #{sch_date_from} AND #{sch_date_to}
|
|
|
|
|
</if>
|
|
|
|
|
<if test='sch_date_opt eq "registDt"'>
|
|
|
|
|
AND trr.regist_dt BETWEEN #{sch_date_from} AND #{sch_date_to}
|
|
|
|
|
</if>
|
|
|
|
|
<if test='vhcleNo != null and vhcleNo != ""'>
|
|
|
|
|
AND INSTR(trr.vhcle_no, #{vhcleNo}) > 0
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectRtReglt" resultType="kr.xit.fims.biz.rt.model.RtDTO$Reglt">
|
|
|
|
@ -146,4 +157,36 @@
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- *************************************************************************************************************
|
|
|
|
|
* 단속자료 첨부파일 목록 조회
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
|
<select id="selectRtRegltAttchFiles" resultType="kr.xit.framework.biz.cmm.model.CmmFileDTO$FileDtl">
|
|
|
|
|
/* rt-reglt-and-erpp-mysql-mapper|selectRtRegltAttchFiles-단속자료 첨부파일 목록 조회|julim */
|
|
|
|
|
SELECT tcfd.file_mastr_id
|
|
|
|
|
, tcfd.file_id
|
|
|
|
|
, tcfd.orginl_file_nm
|
|
|
|
|
, tcfd.file_cntnts_ty
|
|
|
|
|
, tcfd.file_extsn
|
|
|
|
|
, tcfd.file_cpcty
|
|
|
|
|
, tcfd.file_cours
|
|
|
|
|
, tcfd.regist_dt
|
|
|
|
|
, tcfd.register
|
|
|
|
|
FROM tb_cmm_file_mastr tcfm
|
|
|
|
|
JOIN tb_cmm_file_detail tcfd
|
|
|
|
|
ON tcfm.file_mastr_id = tcfd.file_mastr_id
|
|
|
|
|
WHERE tcfm.job_se_code = #{jobSeCode}
|
|
|
|
|
<if test='regltSeCode eq "01" or regltSeCode eq "02" or regltSeCode eq "07"'>
|
|
|
|
|
-- 외부연계 : CCTV-고정형, CCTV-이동형, CCTV-버스장착형(버스전용차로)
|
|
|
|
|
AND tcfm.file_job_id = (SELECT extrl_reglt_cntc_id
|
|
|
|
|
FROM tb_ec_extrl_reglt_cntc
|
|
|
|
|
WHERE reglt_id = #{regltId})
|
|
|
|
|
</if>
|
|
|
|
|
<if test='regltSeCode eq "09"'>
|
|
|
|
|
-- 시민신고(국민신문고)
|
|
|
|
|
AND tcfm.file_job_id = (SELECT CONCAT(interface_seq_n, ctzn_sttemnt_detail_sn)
|
|
|
|
|
FROM tb_ec_ctzn_sttemnt_detail
|
|
|
|
|
WHERE reglt_id = #{regltId})
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|