|
|
@ -477,27 +477,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertKtGbsDetail">
|
|
|
|
<insert id="insertKtGbsDetail">
|
|
|
|
/** ens-oracle-mapper|insertKtGbsDetail KT GIBIS 디테일 데이터 생성|julim */
|
|
|
|
/** ens-oracle-mapper|insertKtGbsDetail KT GIBIS 디테일 데이터 생성|julim */
|
|
|
|
INSERT INTO ens_snd_dtl_kt_gbs (
|
|
|
|
INSERT INTO tb_ens_kt_gbs (
|
|
|
|
send_mast_id, /* 발송 마스터 id */
|
|
|
|
sndng_mastr_id, /* 발송 마스터 id */
|
|
|
|
send_detail_id, /* 발송 상세 id */
|
|
|
|
sndng_detail_id, /* 발송 상세 id */
|
|
|
|
-- unity_sndng_detail_id, /* 통합 발송 상세 id */
|
|
|
|
unity_sndng_detail_id, /* 통합 발송 상세 id */
|
|
|
|
|
|
|
|
signgu_code, /* 시군구 코드 */
|
|
|
|
|
|
|
|
ffnlg_code, /* 과태료 코드 */
|
|
|
|
|
|
|
|
service_cd, /* 서비스 코드 */
|
|
|
|
|
|
|
|
msg_cd, /* 문서코드 */
|
|
|
|
|
|
|
|
msg_type, /* 발송 메시지 타입 */
|
|
|
|
|
|
|
|
make_dt, /* 발송 시작 일시 */
|
|
|
|
|
|
|
|
sndn_ex_time, /* 발송 마감 시간 */
|
|
|
|
|
|
|
|
ex_time, /* 열람 마감 시간 */
|
|
|
|
|
|
|
|
m_type, /* 문서 종류 */
|
|
|
|
|
|
|
|
opt_type, /* 메시지 발송 구분 */
|
|
|
|
src_key, /* 관리키 */
|
|
|
|
src_key, /* 관리키 */
|
|
|
|
src_seq, /* 리스트 순번 */
|
|
|
|
src_seq, /* 리스트 순번 */
|
|
|
|
ci, /* ci */
|
|
|
|
sci, /* ci */
|
|
|
|
mms_dtl_cnts, /* MMS 상세 내용 */
|
|
|
|
mms_dtl_cnts, /* MMS 상세 내용 */
|
|
|
|
mms_title, /* MMS 제목 */
|
|
|
|
mms_title, /* MMS 제목 */
|
|
|
|
rcs_dtl_cnts, /* RCS 메시지 생세내용 */
|
|
|
|
rcs_dtl_cnts, /* RCS 메시지 생세내용 */
|
|
|
|
url, /* 연결 URL */
|
|
|
|
url, /* 연결 URL */
|
|
|
|
hash, /* 문서 해시 */
|
|
|
|
doc_hash, /* 문서 해시 */
|
|
|
|
mdn, /* 개인 휴대 전화 번호 */
|
|
|
|
mdn, /* 개인 휴대 전화 번호 */
|
|
|
|
mk_tmplt_msg_json_data,
|
|
|
|
regist_dt,
|
|
|
|
doc_stat
|
|
|
|
register
|
|
|
|
)
|
|
|
|
)
|
|
|
|
SELECT #{sndngMastrId}
|
|
|
|
SELECT #{sndngMastrId}
|
|
|
|
, LPAD(sndng_detail_id_seq.nextval, 20, '0')
|
|
|
|
, LPAD(sndng_detail_id_seq.nextval, 20, '0')
|
|
|
|
-- , teusd.unity_sndng_detail_id
|
|
|
|
|
|
|
|
, teusd.unity_sndng_detail_id
|
|
|
|
, teusd.unity_sndng_detail_id
|
|
|
|
, row_number() over (order by teusd.unity_sndng_detail_id)
|
|
|
|
, teusm.signgu_code
|
|
|
|
|
|
|
|
, teusm.ffnlg_code
|
|
|
|
|
|
|
|
, term.kt_service_code
|
|
|
|
|
|
|
|
, teusm.tmplat_id
|
|
|
|
|
|
|
|
, '2' /* RCS/xMS (RCS :1, xMS: 2) */
|
|
|
|
|
|
|
|
, teusm.sndng_dt_1
|
|
|
|
|
|
|
|
, teusm.clos_dt
|
|
|
|
|
|
|
|
, teusm.clos_dt
|
|
|
|
|
|
|
|
, '4' /* 3: LMS 4: MMS 6: RCS*/
|
|
|
|
|
|
|
|
, '1'
|
|
|
|
|
|
|
|
, teusd.unity_sndng_detail_id
|
|
|
|
|
|
|
|
, '0000'
|
|
|
|
, tec.ci
|
|
|
|
, tec.ci
|
|
|
|
, tetm.tmplat_cn || CHR(13) || CHR(10) || '- 열람기간 : ' || substr(teusm.clos_dt, 1, 4) || '년 ' || substr(teusm.clos_dt, 5, 2) || '월 ' || substr(teusm.clos_dt, 7, 2) || '일까지'|| CHR(13) || CHR(10) || '- 문의처 : ' || tetm.cstmr_cnter_tlphon_no || CHR(13) || CHR(10) || CHR(13) || CHR(10) ||'{#INFO_CFRM_STR}'|| CHR(13) || CHR(10) ||'{#RCVE_RF_STR}'
|
|
|
|
, tetm.tmplat_cn || CHR(13) || CHR(10) || '- 열람기간 : ' || substr(teusm.clos_dt, 1, 4) || '년 ' || substr(teusm.clos_dt, 5, 2) || '월 ' || substr(teusm.clos_dt, 7, 2) || '일까지'|| CHR(13) || CHR(10) || '- 문의처 : ' || tetm.cstmr_cnter_tlphon_no || CHR(13) || CHR(10) || CHR(13) || CHR(10) ||'{#INFO_CFRM_STR}'|| CHR(13) || CHR(10) ||'{#RCVE_RF_STR}'
|
|
|
|
, tetm.tmplat_sj
|
|
|
|
, tetm.tmplat_sj
|
|
|
@ -505,8 +525,8 @@
|
|
|
|
, #{url}
|
|
|
|
, #{url}
|
|
|
|
, sha256.encrypt(teusd.unity_sndng_detail_id)
|
|
|
|
, sha256.encrypt(teusd.unity_sndng_detail_id)
|
|
|
|
, ''
|
|
|
|
, ''
|
|
|
|
, tensd.tmplt_msg_data
|
|
|
|
, sysdate
|
|
|
|
, ''
|
|
|
|
, 'batch'
|
|
|
|
FROM tb_ens_unity_sndng_mastr teusm
|
|
|
|
FROM tb_ens_unity_sndng_mastr teusm
|
|
|
|
JOIN tb_ens_tmplat_manage tetm
|
|
|
|
JOIN tb_ens_tmplat_manage tetm
|
|
|
|
ON teusm.tmplat_id = tetm.tmplat_id
|
|
|
|
ON teusm.tmplat_id = tetm.tmplat_id
|
|
|
@ -515,7 +535,7 @@
|
|
|
|
JOIN tb_ens_rlaybsnm_manage term
|
|
|
|
JOIN tb_ens_rlaybsnm_manage term
|
|
|
|
ON teusm.signgu_code = term.signgu_code AND teusm.ffnlg_code = term.ffnlg_code
|
|
|
|
ON teusm.signgu_code = term.signgu_code AND teusm.ffnlg_code = term.ffnlg_code
|
|
|
|
JOIN tb_elctrn_ntic_sndng_detail tensd
|
|
|
|
JOIN tb_elctrn_ntic_sndng_detail tensd
|
|
|
|
ON teusd.unity_sndng_detail_id = tensd.elctrn_ntic_sndng_detail_id
|
|
|
|
ON teusd.unity_sndng_detail_id = tensd.elctrn_ntic_sndng_detail_id
|
|
|
|
LEFT JOIN tb_ens_ci tec
|
|
|
|
LEFT JOIN tb_ens_ci tec
|
|
|
|
ON teusd.unity_sndng_detail_id = tec.unity_sndng_detail_id
|
|
|
|
ON teusd.unity_sndng_detail_id = tec.unity_sndng_detail_id
|
|
|
|
WHERE teusm.unity_sndng_mastr_id = #{unitySndngMastrId}
|
|
|
|
WHERE teusm.unity_sndng_mastr_id = #{unitySndngMastrId}
|
|
|
@ -640,16 +660,16 @@
|
|
|
|
, tekmd.read_expires_at /* 최초 열람 만료 일시 */
|
|
|
|
, tekmd.read_expires_at /* 최초 열람 만료 일시 */
|
|
|
|
, tekmd.review_expires_at /* 재열람 만료 일시 */
|
|
|
|
, tekmd.review_expires_at /* 재열람 만료 일시 */
|
|
|
|
, tec.ci
|
|
|
|
, tec.ci
|
|
|
|
FROM tb_ens_sndng_mastr tesm
|
|
|
|
FROM tb_ens_sndng_mastr tesm
|
|
|
|
JOIN tb_ens_kakao_d10 tekmd
|
|
|
|
JOIN tb_ens_kakao_d10 tekmd
|
|
|
|
ON tesm.sndng_mastr_id = tekmd.sndng_mastr_id
|
|
|
|
ON tesm.sndng_mastr_id = tekmd.sndng_mastr_id
|
|
|
|
LEFT JOIN tb_ens_ci tec
|
|
|
|
LEFT JOIN tb_ens_ci tec
|
|
|
|
ON tekmd.unity_sndng_detail_id = tec.unity_sndng_detail_id
|
|
|
|
ON tekmd.unity_sndng_detail_id = tec.unity_sndng_detail_id
|
|
|
|
WHERE tesm.sndng_mastr_id = #{sndngMastrId}
|
|
|
|
WHERE tesm.sndng_mastr_id = #{sndngMastrId}
|
|
|
|
AND tesm.signgu_code = #{signguCode}
|
|
|
|
AND tesm.signgu_code = #{signguCode}
|
|
|
|
AND tesm.ffnlg_code = #{ffnlgCode}
|
|
|
|
AND tesm.ffnlg_code = #{ffnlgCode}
|
|
|
|
ORDER BY tesm.unity_sndng_mastr_id
|
|
|
|
ORDER BY tesm.unity_sndng_mastr_id
|
|
|
|
, tekmd.unity_sndng_detail_id
|
|
|
|
, tekmd.unity_sndng_detail_id
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectKtBcMstTgtInfo" resultType="kr.xit.biz.ens.model.EnsKtBcDTO">
|
|
|
|
<select id="selectKtBcMstTgtInfo" resultType="kr.xit.biz.ens.model.EnsKtBcDTO">
|
|
|
@ -747,38 +767,20 @@
|
|
|
|
, tesm.sndng_ty_code /* 발송유형 코드 */
|
|
|
|
, tesm.sndng_ty_code /* 발송유형 코드 */
|
|
|
|
, tesm.sndng_co /* 발송건수 */
|
|
|
|
, tesm.sndng_co /* 발송건수 */
|
|
|
|
, FN_GET_DATETOUNIXTIME(tesm.clos_dt) AS closDt /* 마감일시 */
|
|
|
|
, FN_GET_DATETOUNIXTIME(tesm.clos_dt) AS closDt /* 마감일시 */
|
|
|
|
/*
|
|
|
|
, tekg.sndng_mastr_id
|
|
|
|
, tekbm.sndng_mastr_id
|
|
|
|
, tekg.service_cd
|
|
|
|
, tekbm.service_cd
|
|
|
|
, tekg.msg_cd
|
|
|
|
, tekbm.service_key
|
|
|
|
, tekg.msg_type
|
|
|
|
, tekbm.agency_id
|
|
|
|
, tekg.make_dt
|
|
|
|
, tekbm.dept_cd
|
|
|
|
, tekg.sndn_ex_time
|
|
|
|
, tekbm.msg_cd
|
|
|
|
, tekg.ex_time
|
|
|
|
, tekbm.msg_type
|
|
|
|
, tekg.snd_tel_no
|
|
|
|
, tekbm.make_dt
|
|
|
|
, tekg.m_type
|
|
|
|
, tekbm.sndn_ex_time
|
|
|
|
, tekg.opt_type
|
|
|
|
, tekbm.ex_time
|
|
|
|
, base64encode(tekg.mms_binary) AS mmsBinary
|
|
|
|
, tekbm.snd_tel_no
|
|
|
|
|
|
|
|
, tekbm.m_type
|
|
|
|
|
|
|
|
, tekbm.brand_id
|
|
|
|
|
|
|
|
, tekbm.opt_type
|
|
|
|
|
|
|
|
, tekbm.tkn_rpmt_yn
|
|
|
|
|
|
|
|
, tekbm.rdng_rpmt_yn
|
|
|
|
|
|
|
|
, base64encode(tekbm.mms_binary) AS mmsBinary
|
|
|
|
|
|
|
|
, tekbm.file_fmat
|
|
|
|
|
|
|
|
, tekbm.sndn_tot_cnt
|
|
|
|
|
|
|
|
, tekbm.mktn_rcve_csyn
|
|
|
|
|
|
|
|
, tekbm.snd_plfm_id
|
|
|
|
|
|
|
|
, tekbm.snd_npost
|
|
|
|
|
|
|
|
, tekbm.snd_date
|
|
|
|
|
|
|
|
, tekbm.multi_mbl_prc_type
|
|
|
|
|
|
|
|
, tekbm.test_sndn_yn
|
|
|
|
|
|
|
|
, tekbm.rcv_rfrl_yn
|
|
|
|
|
|
|
|
, tekbm.reopen_day
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
FROM tb_ens_sndng_mastr tesm
|
|
|
|
FROM tb_ens_sndng_mastr tesm
|
|
|
|
-- JOIN tb_ens_kt_bc_mastr tekbm
|
|
|
|
JOIN tb_ens_kt_gbs tekg
|
|
|
|
-- ON tesm.sndng_mastr_id = tekbm.sndng_mastr_id
|
|
|
|
ON tesm.sndng_mastr_id = tekg.sndng_mastr_id
|
|
|
|
WHERE tesm.sndng_mastr_id = #{sndngMastrId}
|
|
|
|
WHERE tesm.sndng_mastr_id = #{sndngMastrId}
|
|
|
|
AND tesm.signgu_code = #{signguCode}
|
|
|
|
AND tesm.signgu_code = #{signguCode}
|
|
|
|
AND tesm.ffnlg_code = #{ffnlgCode}
|
|
|
|
AND tesm.ffnlg_code = #{ffnlgCode}
|
|
|
@ -790,24 +792,22 @@
|
|
|
|
SELECT tekbm.sndng_mastr_id /* 발송마스터 ID */
|
|
|
|
SELECT tekbm.sndng_mastr_id /* 발송마스터 ID */
|
|
|
|
, tekbm.signgu_code /* 시군구 코드 */
|
|
|
|
, tekbm.signgu_code /* 시군구 코드 */
|
|
|
|
, tekbm.ffnlg_code /* 과태료 코드 */
|
|
|
|
, tekbm.ffnlg_code /* 과태료 코드 */
|
|
|
|
, esdkg.src_key
|
|
|
|
, tekg.src_key
|
|
|
|
, esdkg.src_seq
|
|
|
|
, tekg.src_seq
|
|
|
|
, esdkg.ci
|
|
|
|
, tekg.sci
|
|
|
|
, esdkg.mms_dtl_cnts
|
|
|
|
, tekg.mms_dtl_cnts
|
|
|
|
, esdkg.mms_title
|
|
|
|
, tekg.mms_title
|
|
|
|
, esdkg.rcs_dtl_cnts
|
|
|
|
, tekg.rcs_dtl_cnts
|
|
|
|
, esdkg.url
|
|
|
|
, tekg.url
|
|
|
|
, esdkg.hash AS docHash
|
|
|
|
, tekg.doc_hash
|
|
|
|
, esdkg.mdn
|
|
|
|
, tekg.mdn
|
|
|
|
, esdkg.mk_tmplt_msg_json_data
|
|
|
|
|
|
|
|
, esdkg.doc_stat
|
|
|
|
|
|
|
|
FROM tb_ens_kt_bc_mastr tekbm
|
|
|
|
FROM tb_ens_kt_bc_mastr tekbm
|
|
|
|
JOIN ens_snd_dtl_kt_gbs esdkg
|
|
|
|
JOIN tb_ens_kt_gbs tekg
|
|
|
|
ON tekbm.sndng_mastr_id = esdkg.SEND_MAST_ID
|
|
|
|
ON tekbm.sndng_mastr_id = tekg.sndng_mastr_id
|
|
|
|
WHERE tekbm.sndng_mastr_id = #{sndngMastrId}
|
|
|
|
WHERE tekbm.sndng_mastr_id = #{sndngMastrId}
|
|
|
|
AND tekbm.signgu_code = #{signguCode}
|
|
|
|
AND tekbm.signgu_code = #{signguCode}
|
|
|
|
AND tekbm.ffnlg_code = #{ffnlgCode}
|
|
|
|
AND tekbm.ffnlg_code = #{ffnlgCode}
|
|
|
|
ORDER BY esdkg.send_detail_id
|
|
|
|
ORDER BY tekg.sndng_detail_id
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectSndProcessStatus" resultType="kr.xit.biz.ens.model.cmm.SndngMssageParam">
|
|
|
|
<select id="selectSndProcessStatus" resultType="kr.xit.biz.ens.model.cmm.SndngMssageParam">
|
|
|
|