From 1f2c687c4fbfd4637007dde99cf977300ed65f5d Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Wed, 14 Aug 2024 17:26:18 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B2=B0=EA=B3=BC=ED=85=8C=EC=9D=B4?= =?UTF-8?q?=EB=B8=94=20=EB=8C=80=EC=83=81=20=EB=B3=80=EA=B2=BD=20=20=20=20?= =?UTF-8?q?=20=20=3D>=20tb=5Fcntc=5Fsndng=5Fresult=20->=20tb=5Felctrn=5Fnt?= =?UTF-8?q?ic=5Fsndng=5Fresult?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/biz/ens/mapper/IEnsBatchMapper.java | 6 +-- .../ens/service/EnsBatchExtractService.java | 6 +-- .../mapper/biz/ens-mysql-mapper.xml | 42 ++++++++----------- 3 files changed, 23 insertions(+), 31 deletions(-) diff --git a/mens-batch/src/main/java/kr/xit/biz/ens/mapper/IEnsBatchMapper.java b/mens-batch/src/main/java/kr/xit/biz/ens/mapper/IEnsBatchMapper.java index be3d348..e347bd0 100644 --- a/mens-batch/src/main/java/kr/xit/biz/ens/mapper/IEnsBatchMapper.java +++ b/mens-batch/src/main/java/kr/xit/biz/ens/mapper/IEnsBatchMapper.java @@ -384,7 +384,7 @@ public interface IEnsBatchMapper { /** *
      * 연계발송결과 반영
-     * - tb_cntc_sndng_result, tb_ens_unity_sndng_detail
+     * - tb_elctrn_ntic_sndng_result, tb_ens_unity_sndng_detail
      * @param dto 발송구분코드, 발송결과 상태, 송신(요청)/수신(조회)/최초열람 일시, 에러내용
      * @return int
      * 
@@ -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 */ diff --git a/mens-batch/src/main/java/kr/xit/biz/ens/service/EnsBatchExtractService.java b/mens-batch/src/main/java/kr/xit/biz/ens/service/EnsBatchExtractService.java index e4397ff..68c1b2c 100644 --- a/mens-batch/src/main/java/kr/xit/biz/ens/service/EnsBatchExtractService.java +++ b/mens-batch/src/main/java/kr/xit/biz/ens/service/EnsBatchExtractService.java @@ -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()); }) ); diff --git a/mens-batch/src/main/resources/egovframework/mapper/biz/ens-mysql-mapper.xml b/mens-batch/src/main/resources/egovframework/mapper/biz/ens-mysql-mapper.xml index c1e5450..aa51dff 100644 --- a/mens-batch/src/main/resources/egovframework/mapper/biz/ens-mysql-mapper.xml +++ b/mens-batch/src/main/resources/egovframework/mapper/biz/ens-mysql-mapper.xml @@ -1109,61 +1109,53 @@ /** 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} /** 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 - FROM tb_ens_kakao_my_doc tekmd - WHERE tekmd.document_binder_uuid = #{docKeyId}) + , 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}) /** 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 - FROM tb_ens_kakao_d10 tekd - WHERE tekd.envelope_id = #{docKeyId}) + , 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})