|
|
@ -932,16 +932,17 @@
|
|
|
|
INSERT
|
|
|
|
INSERT
|
|
|
|
INTO tb_elctrn_ntic_sndng_result (
|
|
|
|
INTO tb_elctrn_ntic_sndng_result (
|
|
|
|
elctrn_ntic_sndng_detail_id, /* 통합 발송 상세 ID*/
|
|
|
|
elctrn_ntic_sndng_detail_id, /* 통합 발송 상세 ID*/
|
|
|
|
sndng_se, /* 발송구분코드 */
|
|
|
|
sndng_result_code,
|
|
|
|
sndng_result_sttus,
|
|
|
|
|
|
|
|
requst_dt, /* 송신(요청) 일시 */
|
|
|
|
requst_dt, /* 송신(요청) 일시 */
|
|
|
|
inqire_dt, /* 수신(조회) 일시 */
|
|
|
|
inqire_dt, /* 수신(조회) 일시 */
|
|
|
|
readng_dt, /* 최초열람일시 */
|
|
|
|
readng_dt, /* 최초열람일시 */
|
|
|
|
error_cn, /* 에러내용 */
|
|
|
|
error_cn, /* 에러내용 */
|
|
|
|
regist_dt
|
|
|
|
regist_dt
|
|
|
|
) SELECT unity_sndng_detail_id/* 통합 발송 상세 ID*/
|
|
|
|
) SELECT unity_sndng_detail_id/* 통합 발송 상세 ID*/
|
|
|
|
, #{sndngSeCode} /* 발송구분코드 - KAKAO-MY-DOC */
|
|
|
|
, CASE WHEN #{sndngResultSttus} IN ('RECEIVED', 'EXPIRED') THEN '1'
|
|
|
|
, #{sndngResultSttus}
|
|
|
|
WHEN #{sndngResultSttus} IN ('READ') THEN '2'
|
|
|
|
|
|
|
|
WHEN #{sndngResultSttus} IS NULL THEN NULL
|
|
|
|
|
|
|
|
ELSE '3' END
|
|
|
|
, DATE_FORMAT(#{requstDt}, '%Y%m%d%H%i%s') /* 송신(요청) 일시 */
|
|
|
|
, DATE_FORMAT(#{requstDt}, '%Y%m%d%H%i%s') /* 송신(요청) 일시 */
|
|
|
|
, DATE_FORMAT(#{inqireDt}, '%Y%m%d%H%i%s') /* 수신(조회) 일시 */
|
|
|
|
, DATE_FORMAT(#{inqireDt}, '%Y%m%d%H%i%s') /* 수신(조회) 일시 */
|
|
|
|
, DATE_FORMAT(#{readngDt}, '%Y%m%d%H%i%s') /* 최초열람일시 */
|
|
|
|
, DATE_FORMAT(#{readngDt}, '%Y%m%d%H%i%s') /* 최초열람일시 */
|
|
|
@ -954,21 +955,29 @@
|
|
|
|
<update id="updateCntcSndngResultByKkopay">
|
|
|
|
<update id="updateCntcSndngResultByKkopay">
|
|
|
|
/** ens-mysql-mapper|updateCntcSndngResultByKkopay-카카오페이 연계발송결과반영|julim */
|
|
|
|
/** ens-mysql-mapper|updateCntcSndngResultByKkopay-카카오페이 연계발송결과반영|julim */
|
|
|
|
UPDATE tb_elctrn_ntic_sndng_result
|
|
|
|
UPDATE tb_elctrn_ntic_sndng_result
|
|
|
|
SET sndng_result_sttus = #{sndngResultSttus}
|
|
|
|
SET sndng_result_code = CASE WHEN #{sndngResultSttus} IN ('RECEIVED', 'EXPIRED') THEN '1'
|
|
|
|
|
|
|
|
WHEN #{sndngResultSttus} IN ('READ') THEN '2'
|
|
|
|
|
|
|
|
WHEN #{sndngResultSttus} IS NULL THEN ''
|
|
|
|
|
|
|
|
ELSE '3' END
|
|
|
|
, requst_dt = from_unixtime(#{requstDt}, '%Y%m%d%H%i%s') /* 송신(요청) 일시 */
|
|
|
|
, requst_dt = from_unixtime(#{requstDt}, '%Y%m%d%H%i%s') /* 송신(요청) 일시 */
|
|
|
|
, inqire_dt = from_unixtime(#{inqireDt}, '%Y%m%d%H%i%s') /* 수신(조회) 일시 */
|
|
|
|
, inqire_dt = from_unixtime(#{inqireDt}, '%Y%m%d%H%i%s') /* 수신(조회) 일시 */
|
|
|
|
, readng_dt = from_unixtime(#{readngDt}, '%Y%m%d%H%i%s') /* 최초열람일시 */
|
|
|
|
, readng_dt = from_unixtime(#{readngDt}, '%Y%m%d%H%i%s') /* 최초열람일시 */
|
|
|
|
, error_cn = #{errorCn}
|
|
|
|
, error_cn = #{errorCn}
|
|
|
|
, last_updt_dt = now()
|
|
|
|
, last_updt_dt = now()
|
|
|
|
WHERE elctrn_ntic_sndng_detail_id = (SELECT tekmd.unity_sndng_detail_id
|
|
|
|
WHERE elctrn_ntic_sndng_detail_id = (SELECT tensd.elctrn_ntic_sndng_detail_id
|
|
|
|
FROM tb_ens_kakao_my_doc tekmd
|
|
|
|
FROM tb_ens_kakao_my_doc tekmd
|
|
|
|
|
|
|
|
JOIN tb_elctrn_ntic_sndng_detail tensd
|
|
|
|
|
|
|
|
ON tekmd.external_document_uuid = tensd.external_document_uuid
|
|
|
|
WHERE tekmd.document_binder_uuid = #{docKeyId})
|
|
|
|
WHERE tekmd.document_binder_uuid = #{docKeyId})
|
|
|
|
</update>
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
|
|
<update id="updateCntcSndngResultByKkotalk">
|
|
|
|
<update id="updateCntcSndngResultByKkotalk">
|
|
|
|
/** ens-mysql-mapper|updateCntcSndngResultByKkotalk-카카오톡 연계발송결과반영|jhseo */
|
|
|
|
/** ens-mysql-mapper|updateCntcSndngResultByKkotalk-카카오톡 연계발송결과반영|jhseo */
|
|
|
|
UPDATE tb_elctrn_ntic_sndng_result
|
|
|
|
UPDATE tb_elctrn_ntic_sndng_result
|
|
|
|
SET sndng_result_sttus = #{sndngResultSttus}
|
|
|
|
SET sndng_result_code = CASE WHEN #{sndngResultSttus} IN ('RECEIVED', 'EXPIRED') THEN '1'
|
|
|
|
|
|
|
|
WHEN #{sndngResultSttus} IN ('READ') THEN '2'
|
|
|
|
|
|
|
|
WHEN #{sndngResultSttus} IS NULL THEN ''
|
|
|
|
|
|
|
|
ELSE '3' END
|
|
|
|
, requst_dt = DATE_FORMAT(#{requstDt}, '%Y%m%d%H%i%s') /* 송신(요청) 일시 */
|
|
|
|
, requst_dt = DATE_FORMAT(#{requstDt}, '%Y%m%d%H%i%s') /* 송신(요청) 일시 */
|
|
|
|
, inqire_dt = DATE_FORMAT(#{inqireDt}, '%Y%m%d%H%i%s') /* 수신(조회) 일시 */
|
|
|
|
, inqire_dt = DATE_FORMAT(#{inqireDt}, '%Y%m%d%H%i%s') /* 수신(조회) 일시 */
|
|
|
|
, readng_dt = DATE_FORMAT(#{readngDt}, '%Y%m%d%H%i%s') /* 최초열람일시 */
|
|
|
|
, readng_dt = DATE_FORMAT(#{readngDt}, '%Y%m%d%H%i%s') /* 최초열람일시 */
|
|
|
@ -1013,7 +1022,7 @@
|
|
|
|
, tcsm.clos_dt
|
|
|
|
, tcsm.clos_dt
|
|
|
|
, tcsd.elctrn_ntic_sndng_detail_id AS unitySndngDetailId
|
|
|
|
, tcsd.elctrn_ntic_sndng_detail_id AS unitySndngDetailId
|
|
|
|
, tcsd.main_code
|
|
|
|
, tcsd.main_code
|
|
|
|
, tcsd.ffnlg_code AS ffnlg_code_de
|
|
|
|
, NVL(tcsd.ffnlg_code, '11') AS ffnlg_code_de
|
|
|
|
, tcsd.signgu_code AS signgu_code_de
|
|
|
|
, tcsd.signgu_code AS signgu_code_de
|
|
|
|
, ECL_DECRYPT(tcsd.ihidnum) AS ihidnum
|
|
|
|
, ECL_DECRYPT(tcsd.ihidnum) AS ihidnum
|
|
|
|
, tcsd.ihidnum AS encIhidnum
|
|
|
|
, tcsd.ihidnum AS encIhidnum
|
|
|
@ -1032,7 +1041,7 @@
|
|
|
|
ON tcsm.nht_tmplat_id = tetm.tmplat_id
|
|
|
|
ON tcsm.nht_tmplat_id = tetm.tmplat_id
|
|
|
|
JOIN tb_ens_rlaybsnm_manage term
|
|
|
|
JOIN tb_ens_rlaybsnm_manage term
|
|
|
|
ON (tcsm.signgu_code = term.signgu_code
|
|
|
|
ON (tcsm.signgu_code = term.signgu_code
|
|
|
|
AND tcsm.ffnlg_code = term.ffnlg_code)
|
|
|
|
AND NVL(tcsm.ffnlg_code, '11') = term.ffnlg_code)
|
|
|
|
WHERE tcsm.elctrn_ntic_sndng_id = #{unitySndngMastrId}
|
|
|
|
WHERE tcsm.elctrn_ntic_sndng_id = #{unitySndngMastrId}
|
|
|
|
AND tcsm.sndng_process_sttus = #{sndngProcessSttus}
|
|
|
|
AND tcsm.sndng_process_sttus = #{sndngProcessSttus}
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|