|
|
|
@ -166,7 +166,8 @@
|
|
|
|
|
<insert id="insertSndngMst">
|
|
|
|
|
/** ens-mysql-mapper|insertSndngMst-발송마스터 생성|julim */
|
|
|
|
|
<selectKey keyProperty="sndngMastrId" resultType="string" order="BEFORE">
|
|
|
|
|
SELECT concat(date_format(now(), '%Y%m%d'), LPAD(NEXTVAL(tb_ens_sndng_mastr_seq), 12, '0')) from dual
|
|
|
|
|
SELECT concat(date_format(now(), '%Y%m%d'), LPAD(NEXTVAL(tb_ens_sndng_mastr_seq), 12, '0'))
|
|
|
|
|
FROM dual
|
|
|
|
|
</selectKey>
|
|
|
|
|
INSERT
|
|
|
|
|
INTO tb_ens_sndng_mastr (
|
|
|
|
@ -207,12 +208,12 @@
|
|
|
|
|
FROM tb_ens_unity_sndng_mastr teusm
|
|
|
|
|
WHERE teusm.unity_sndng_mastr_id = #{unitySndngMastrId}
|
|
|
|
|
AND teusm.sndng_process_sttus = #{sndngProcessSttus}
|
|
|
|
|
</insert>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<insert id="insertKakaoMyDocs">
|
|
|
|
|
/** ens-mysql-mapper|insertKakaoMyDocs-카카오내문서함 생성|julim */
|
|
|
|
|
INSERT
|
|
|
|
|
INTO tb_ens_kakao_my_doc (
|
|
|
|
|
<insert id="insertKakaoMyDocs">
|
|
|
|
|
/** ens-mysql-mapper|insertKakaoMyDocs-카카오내문서함 생성|julim */
|
|
|
|
|
INSERT
|
|
|
|
|
INTO tb_ens_kakao_my_doc (
|
|
|
|
|
sndng_detail_id, /* 발송상세ID */
|
|
|
|
|
unity_sndng_detail_id, /* 통합발송상세ID */
|
|
|
|
|
sndng_mastr_id, /* 발송마스터ID */
|
|
|
|
@ -226,17 +227,17 @@ INTO tb_ens_kakao_my_doc (
|
|
|
|
|
recv_phone_number, /* 받는이 전화번호 */
|
|
|
|
|
recv_name, /* 받는이 이름 */
|
|
|
|
|
recv_birthday, /* 받는이 생년월일 */
|
|
|
|
|
recv_is_required_verify_name, /* 성명검증옵션 */
|
|
|
|
|
recv_is_required_verify_name,/* 성명검증옵션 */
|
|
|
|
|
prop_link, /* 모바일페이지 URL */
|
|
|
|
|
prop_payload,
|
|
|
|
|
prop_message,
|
|
|
|
|
prop_cs_number, /* 고객센터 전화번호 */
|
|
|
|
|
prop_cs_name, /* 고객센터 명 */
|
|
|
|
|
-- external_document_uuid, /* 외부문서 식별번호 */
|
|
|
|
|
-- external_document_uuid,/* 외부문서 식별번호 */
|
|
|
|
|
regist_dt,
|
|
|
|
|
register
|
|
|
|
|
)
|
|
|
|
|
SELECT LPAD(NEXTVAL(sndng_detail_id_seq), 20, '0')
|
|
|
|
|
)
|
|
|
|
|
SELECT LPAD(NEXTVAL(sndng_detail_id_seq), 20, '0')
|
|
|
|
|
, teusd.unity_sndng_detail_id
|
|
|
|
|
, #{sndngMastrId}
|
|
|
|
|
, teusm.signgu_code
|
|
|
|
@ -259,7 +260,7 @@ SELECT LPAD(NEXTVAL(sndng_detail_id_seq), 20, '0')
|
|
|
|
|
-- , null
|
|
|
|
|
, now()
|
|
|
|
|
, 'batch'
|
|
|
|
|
FROM tb_ens_unity_sndng_mastr teusm
|
|
|
|
|
FROM tb_ens_unity_sndng_mastr teusm
|
|
|
|
|
LEFT JOIN tb_ens_tmplat_manage tetm
|
|
|
|
|
ON teusm.tmplat_id = tetm.tmplat_id
|
|
|
|
|
LEFT JOIN tb_ens_unity_sndng_detail teusd
|
|
|
|
@ -410,7 +411,7 @@ FROM tb_ens_unity_sndng_mastr teusm
|
|
|
|
|
<!-- ================================ send ============================================= -->
|
|
|
|
|
<!-- =================================================================================== -->
|
|
|
|
|
<select id="selectSendBulkTgts" resultType="kr.xit.biz.ens.model.EnsDTO$SndngMssageParam">
|
|
|
|
|
/** ens-mysql-mapper|selectSendBulkTgts-통합발송 대상 조회|julim */
|
|
|
|
|
/** ens-mysql-mapper|selectSendBulkTgts-발송 대상 조회|julim */
|
|
|
|
|
SELECT tesm.sndng_mastr_id
|
|
|
|
|
, tesm.unity_sndng_mastr_id
|
|
|
|
|
, tesm.tmplat_id
|
|
|
|
|