|
|
|
@ -98,23 +98,26 @@
|
|
|
|
|
* tb_ec_ctzn_sttemnt_detail : 시민신고 상세
|
|
|
|
|
************************************************************************************************************** -->
|
|
|
|
|
<sql id="sqlEcCtznStmtDtl">
|
|
|
|
|
SELECT interface_seq_n
|
|
|
|
|
, ctzn_sttemnt_detail_sn
|
|
|
|
|
, vhcle_no
|
|
|
|
|
, reglt_id
|
|
|
|
|
, instt_code
|
|
|
|
|
, sys_code
|
|
|
|
|
, reglt_de_time
|
|
|
|
|
, reglt_place
|
|
|
|
|
, violt_dtls_nm
|
|
|
|
|
, gps_x
|
|
|
|
|
, gps_y
|
|
|
|
|
, ctzn_sttemnt_detail_process_sttus
|
|
|
|
|
, regist_dt
|
|
|
|
|
, register
|
|
|
|
|
, updt_dt
|
|
|
|
|
, updusr
|
|
|
|
|
FROM tb_ec_ctzn_sttemnt_detail
|
|
|
|
|
SELECT tecsd.interface_seq_n
|
|
|
|
|
, tecsd.ctzn_sttemnt_detail_sn
|
|
|
|
|
, tecsd.vhcle_no
|
|
|
|
|
, tecsd.reglt_id
|
|
|
|
|
, tecsd.instt_code
|
|
|
|
|
, tecsd.sys_code
|
|
|
|
|
, tecsd.reglt_de_time
|
|
|
|
|
, tecsd.reglt_place
|
|
|
|
|
, tecsd.violt_dtls_nm
|
|
|
|
|
, tecsd.gps_x
|
|
|
|
|
, tecsd.gps_y
|
|
|
|
|
, tecsd.ctzn_sttemnt_detail_process_sttus
|
|
|
|
|
, tecsd.regist_dt
|
|
|
|
|
, tecsd.register
|
|
|
|
|
, tecsd.updt_dt
|
|
|
|
|
, tecsd.updusr
|
|
|
|
|
, (SELECT ctzn_sttemnt_process_sttus
|
|
|
|
|
FROM tb_ec_ctzn_sttemnt
|
|
|
|
|
WHERE interface_seq_n = tecsd.interface_seq_n) AS ctzn_sttemnt_process_sttus
|
|
|
|
|
FROM tb_ec_ctzn_sttemnt_detail tecsd
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectEcCtznSttemntDetails" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$CtznStmtDtl">
|
|
|
|
@ -122,10 +125,10 @@
|
|
|
|
|
<include refid="sqlEcCtznStmtDtl"/>
|
|
|
|
|
<where>
|
|
|
|
|
<if test='interfaceSeqN != null and interfaceSeqN != ""'>
|
|
|
|
|
AND interface_seq_n = #{interfaceSeqN}
|
|
|
|
|
AND tecsd.interface_seq_n = #{interfaceSeqN}
|
|
|
|
|
</if>
|
|
|
|
|
<if test='ctznSttemntDetailSn != null and ctznSttemntDetailSn != ""'>
|
|
|
|
|
AND ctzn_sttemnt_detail_sn = #{ctznSttemntDetailSn}
|
|
|
|
|
AND tecsd.ctzn_sttemnt_detail_sn = #{ctznSttemntDetailSn}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
@ -133,8 +136,8 @@
|
|
|
|
|
<select id="selectEcCtznSttemntDetail" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$CtznStmtDtl">
|
|
|
|
|
/* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemntDetail-민원연계(국민신문고) 상세 조회|julim */
|
|
|
|
|
<include refid="sqlEcCtznStmtDtl"/>
|
|
|
|
|
WHERE interface_seq_n = #{interfaceSeqN}
|
|
|
|
|
AND ctzn_sttemnt_detail_sn = #{ctznSttemntDetailSn}
|
|
|
|
|
WHERE tecsd.interface_seq_n = #{interfaceSeqN}
|
|
|
|
|
AND tecsd.ctzn_sttemnt_detail_sn = #{ctznSttemntDetailSn}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertEcCtznSttemntDetail">
|
|
|
|
@ -300,13 +303,28 @@
|
|
|
|
|
/* ec-ctzn-sttemnt-mysql-mapper|updateStatusAndRegltIdOfEcCtznSttemntDetail-시민신고 상세 단속ID set|julim */
|
|
|
|
|
UPDATE tb_ec_ctzn_sttemnt_detail
|
|
|
|
|
SET reglt_id = #{regltId}
|
|
|
|
|
, ctzn_sttemnt_detail_process_sttus = #{ctznSttemntStatusCode}
|
|
|
|
|
, ctzn_sttemnt_detail_process_sttus = #{ctznSttemntDetailProcessSttus}
|
|
|
|
|
, updt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
|
, updusr = #{updusr}
|
|
|
|
|
WHERE interface_seq_n = #{interfaceSeqN}
|
|
|
|
|
AND ctzn_sttemnt_detail_sn = #{ctznSttemntDetailSn}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="updateStmtProcessStsOfEcCtznSttemnt">
|
|
|
|
|
/* ec-ctzn-sttemnt-mysql-mapper|updateStmtProcessStsOfEcCtznSttemnt-시민신고 진행상태 update : 답변완료 or 답변가능|julim */
|
|
|
|
|
UPDATE tb_ec_ctzn_sttemnt
|
|
|
|
|
SET ctzn_sttemnt_process_sttus = IF(#{ctznSttemntStatusCode} = '03', #{ctznSttemntStatusCode}
|
|
|
|
|
, IF((SELECT COUNT(interface_seq_n)
|
|
|
|
|
FROM tb_ec_ctzn_sttemnt_detail
|
|
|
|
|
WHERE interface_seq_n = #{interfaceSeqN}
|
|
|
|
|
AND ctzn_sttemnt_detail_process_sttus = '01') > 0, ctzn_sttemnt_process_sttus,
|
|
|
|
|
#{ctznSttemntStatusCode})
|
|
|
|
|
)
|
|
|
|
|
, updt_dt = DATE_FORMAT(NOW(), '%Y%m%d%H%i%s')
|
|
|
|
|
, updusr = #{updusr}
|
|
|
|
|
WHERE interface_seq_n = #{interfaceSeqN}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<select id="selectEcCtznSttemntAnswer" resultType="kr.xit.fims.biz.ec.model.CtznStmtDTO$CtznStmtAns">
|
|
|
|
|
/* ec-ctzn-sttemnt-mysql-mapper|selectEcCtznSttemntAnswer-시민신고답변 생성 데이타 조회|cjm */
|
|
|
|
|
SELECT teei.interface_seq_n
|
|
|
|
|