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