|
|
|
@ -185,6 +185,103 @@
|
|
|
|
|
INNER JOIN tb_cntc_sndng_detail tcsd ON (tcsm.unity_sndng_mastr_id = tcsd.unity_sndng_mastr_id)
|
|
|
|
|
LEFT OUTER JOIN tb_cntc_sndng_result tcsr ON (tcsd.unity_sndng_detail_id = tcsr.unity_sndng_detail_id)
|
|
|
|
|
WHERE str_to_date(tcsm.clos_dt, '%Y%m%d%H%i%S') > date_add(now(), interval -7 day)
|
|
|
|
|
AND tcsm.sndng_process_sttus != 'accept'
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectCntcMst" resultType="kr.xit.biz.ens.model.cntc.CntcDTO$SndngMst">
|
|
|
|
|
SELECT unity_sndng_mastr_id as unitysndngmastrid
|
|
|
|
|
, sndng_process_sttus as sndngProcessSttus
|
|
|
|
|
FROM tb_cntc_sndng_mastr
|
|
|
|
|
WHERE unity_sndng_mastr_id = #{unitySndngMastrId}
|
|
|
|
|
AND sndng_process_sttus = 'accept'
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertCntcMst">
|
|
|
|
|
INSERT INTO tb_cntc_sndng_del (
|
|
|
|
|
unity_sndng_mastr_id,
|
|
|
|
|
signgu_code,
|
|
|
|
|
ffnlg_code,
|
|
|
|
|
tmplat_id,
|
|
|
|
|
sndng_ty_code,
|
|
|
|
|
sndng_co,
|
|
|
|
|
sndng_process_sttus,
|
|
|
|
|
sndng_dt,
|
|
|
|
|
clos_dt,
|
|
|
|
|
error_code,
|
|
|
|
|
error_mssage,
|
|
|
|
|
regist_dt,
|
|
|
|
|
register )
|
|
|
|
|
SELECT
|
|
|
|
|
tcsm.unity_sndng_mastr_id,
|
|
|
|
|
tcsm.signgu_code,
|
|
|
|
|
tcsm.ffnlg_code,
|
|
|
|
|
tcsm.tmplat_id,
|
|
|
|
|
tcsm.sndng_ty_code,
|
|
|
|
|
tcsm.sndng_co,
|
|
|
|
|
tcsm.sndng_process_sttus,
|
|
|
|
|
tcsm.sndng_dt,
|
|
|
|
|
tcsm.clos_dt,
|
|
|
|
|
tcsm.error_code,
|
|
|
|
|
tcsm.error_mssage,
|
|
|
|
|
tcsm.regist_dt,
|
|
|
|
|
tcsm.register
|
|
|
|
|
from tb_cntc_sndng_mastr tcsm
|
|
|
|
|
WHERE tcsm.unity_sndng_mastr_id = #{unitySndngMastrId}
|
|
|
|
|
AND tcsm.sndng_process_sttus = 'accept'
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertCntcDetail">
|
|
|
|
|
INSERT INTO tb_cntc_sndng_detail_del (
|
|
|
|
|
unity_sndng_detail_id,
|
|
|
|
|
unity_sndng_mastr_id,
|
|
|
|
|
signgu_code,
|
|
|
|
|
ffnlg_code,
|
|
|
|
|
main_code,
|
|
|
|
|
vhcle_no,
|
|
|
|
|
ihidnum,
|
|
|
|
|
moblphon_no,
|
|
|
|
|
nm,
|
|
|
|
|
adres,
|
|
|
|
|
detail_adres,
|
|
|
|
|
zip,
|
|
|
|
|
tmplt_msg_data,
|
|
|
|
|
mobile_page_cn,
|
|
|
|
|
use_instt_idntfc_id,
|
|
|
|
|
external_document_uuid,
|
|
|
|
|
regist_dt,
|
|
|
|
|
register )
|
|
|
|
|
SELECT
|
|
|
|
|
unity_sndng_detail_id,
|
|
|
|
|
unity_sndng_mastr_id,
|
|
|
|
|
signgu_code,
|
|
|
|
|
ffnlg_code,
|
|
|
|
|
main_code,
|
|
|
|
|
vhcle_no,
|
|
|
|
|
ihidnum,
|
|
|
|
|
moblphon_no,
|
|
|
|
|
nm,
|
|
|
|
|
adres,
|
|
|
|
|
detail_adres,
|
|
|
|
|
zip,
|
|
|
|
|
tmplt_msg_data,
|
|
|
|
|
mobile_page_cn,
|
|
|
|
|
use_instt_idntfc_id,
|
|
|
|
|
external_document_uuid,
|
|
|
|
|
regist_dt,
|
|
|
|
|
register
|
|
|
|
|
FROM tb_cntc_sndng_detail
|
|
|
|
|
WHERE unity_sndng_mastr_id = #{unitySndngMastrId}
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteCntcMst">
|
|
|
|
|
DELETE FROM tb_cntc_sndng_mastr
|
|
|
|
|
WHERE unity_sndng_mastr_id = #{unitySndngMastrId}
|
|
|
|
|
AND sndng_process_sttus = 'accept'
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<delete id="deleteCntcDetail">
|
|
|
|
|
DELETE FROM tb_cntc_sndng_detail
|
|
|
|
|
WHERE unity_sndng_mastr_id = #{unitySndngMastrId}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|