feat: 결과테이블 대상 변경

=> tb_cntc_sndng_result -> tb_elctrn_ntic_sndng_result
main
Jonguk. Lim 3 months ago
parent c96c47eeaa
commit 1f2c687c4f

@ -384,7 +384,7 @@ public interface IEnsBatchMapper {
/**
* <pre>
*
* - tb_cntc_sndng_result, tb_ens_unity_sndng_detail
* - tb_elctrn_ntic_sndng_result, tb_ens_unity_sndng_detail
* @param dto , , ()/()/ ,
* @return int
* </pre>
@ -393,14 +393,14 @@ public interface IEnsBatchMapper {
/**
* -
* - tb_cntc_sndng_result, tb_ens_kakao_my_doc
* - tb_elctrn_ntic_sndng_result, tb_ens_kakao_my_doc
* @param dto SndngResult
* @return int
*/
int updateCntcSndngResultByKkopay(final CntcDTO.SndngResult dto);
/**
* -
* - tb_cntc_sndng_result, tb_ens_kakao_d10
* - tb_elctrn_ntic_sndng_result, tb_ens_kakao_d10
* @param dto SndngResult
* @return int
*/

@ -93,9 +93,9 @@ public class EnsBatchExtractService extends AbstractService implements
}else{
code = t.getError_code();
}
// 연계발송결과 생성
insertCntcSndngResult(SndngSeCode.KAKAO.getCode(),
t.getExternal_document_uuid(), code, t.getError_message());
// FIXME:연계발송결과 생성 - skip 확인 필요
//insertCntcSndngResult(SndngSeCode.KAKAO.getCode(),
// t.getExternal_document_uuid(), code, t.getError_message());
})
);

@ -1109,59 +1109,51 @@
<insert id="insertCntcSndngResult">
/** ens-mysql-mapper|insertCntcSndngResult-연계발송결과반영|julim */
INSERT
INTO tb_cntc_sndng_result (
unity_sndng_detail_id, /* 통합 발송 상세 ID*/
sndng_se_code, /* 발송구분코드 */
signgu_code, /* 시군구코드 */
ffnlg_code, /* 과태료코드 */
INTO tb_elctrn_ntic_sndng_result (
elctrn_ntic_sndng_detail_id, /* 통합 발송 상세 ID*/
sndng_se, /* 발송구분코드 */
sndng_result_sttus,
requst_dt, /* 송신(요청) 일시 */
inqire_dt, /* 수신(조회) 일시 */
readng_dt, /* 최초열람일시 */
error_cn, /* 에러내용 */
regist_dt,
register
regist_dt
) SELECT unity_sndng_detail_id/* 통합 발송 상세 ID*/
, #{sndngSeCode} /* 발송구분코드 - KAKAO-MY-DOC */
, signgu_code /* 시군구코드 */
, ffnlg_code /* 과태료코드 */
, #{sndngResultSttus}
, from_unixtime(#{requstDt}, '%Y%m%d%H%i%s') /* 송신(요청) 일시 */
, from_unixtime(#{inqireDt}, '%Y%m%d%H%i%s') /* 수신(조회) 일시 */
, from_unixtime(#{readngDt}, '%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(#{readngDt}, '%Y%m%d%H%i%s') /* 최초열람일시 */
, SUBSTR(#{errorCn}, 1, 999) /* 에러내용 */
, now()
, 'batch'
FROM tb_ens_unity_sndng_detail
WHERE unity_sndng_detail_id = #{unitySndngDetailId}
</insert>
<update id="updateCntcSndngResultByKkopay">
/** ens-mysql-mapper|updateCntcSndngResultByKkopay-카카오페이 연계발송결과반영|julim */
UPDATE tb_cntc_sndng_result
UPDATE tb_elctrn_ntic_sndng_result
SET sndng_result_sttus = #{sndngResultSttus}
, requst_dt = from_unixtime(#{requstDt}, '%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') /* 최초열람일시 */
, error_cn = #{errorCn}
, updt_dt = now()
, updusr = 'batch'
WHERE unity_sndng_detail_id = (SELECT tekmd.unity_sndng_detail_id
, last_updt_dt = now()
WHERE elctrn_ntic_sndng_detail_id = (SELECT tekmd.unity_sndng_detail_id
FROM tb_ens_kakao_my_doc tekmd
WHERE tekmd.document_binder_uuid = #{docKeyId})
</update>
<update id="updateCntcSndngResultByKkotalk">
/** ens-mysql-mapper|updateCntcSndngResultByKkotalk-카카오톡 연계발송결과반영|jhseo */
UPDATE tb_cntc_sndng_result
UPDATE tb_elctrn_ntic_sndng_result
SET sndng_result_sttus = #{sndngResultSttus}
, requst_dt = DATE_FORMAT(#{requstDt}, '%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') /* 최초열람일시 */
, error_cn = #{errorCn}
, updt_dt = now()
, updusr = 'batch'
WHERE unity_sndng_detail_id = (SELECT tekd.unity_sndng_detail_id
, last_updt_dt = now()
WHERE elctrn_ntic_sndng_detail_id = (SELECT tekd.unity_sndng_detail_id
FROM tb_ens_kakao_d10 tekd
WHERE tekd.envelope_id = #{docKeyId})
</update>

Loading…
Cancel
Save