From ef086d671f7ed14b203979232a8f77ba20aff6a0 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Fri, 16 Aug 2024 15:23:17 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20kakaotalk=20API=20call=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=EC=B2=98=EB=A6=AC=EC=8B=9C=20=EB=A7=A4=ED=95=91?= =?UTF-8?q?=EA=B0=92=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db/mens_traffic.sql | 53 ++++++++++--------- .../v2/service/KkotalkEltrcDocService.java | 6 +-- .../mapper/biz/ens-mysql-mapper.xml | 4 +- 3 files changed, 33 insertions(+), 30 deletions(-) diff --git a/db/mens_traffic.sql b/db/mens_traffic.sql index 02d98a1..ea574d9 100644 --- a/db/mens_traffic.sql +++ b/db/mens_traffic.sql @@ -32,6 +32,8 @@ select * from tb_ens_unity_sndng_mastr; select * from tb_ens_unity_sndng_detail; select * from tb_ens_ci; +select * from tb_ens_sndng_mastr; + select * from tb_ens_ihidnum_manage; select * from tb_ens_ci_manage; @@ -64,28 +66,29 @@ where teim.ihidnum = 'RUNCNjEwM0JERENGMEMzNjRBOTAyMERERjg5MDFEODc='; WHERE teim.ihidnum = 'RUNCNjEwM0JERENGMEMzNjRBOTAyMERERjg5MDFEODc='; - - - common_categories, - read_expired_at, /* 처리마감시간 */ - -- recv_ci, /* 받는이 CI */ - recv_phone_number, /* 받는이 전화번호 */ - recv_name, /* 받는이 이름 */ - recv_birthday, /* 받는이 생년월일 */ - recv_is_required_verify_name,/* 성명검증옵션 */ - prop_link, /* 모바일페이지 URL */ - prop_payload, - prop_message, - prop_cs_number, /* 고객센터 전화번호 */ - prop_cs_name, /* 고객센터 명 */ - -- external_document_uuid,/* 외부문서 식별번호 */ - regist_dt, - register - - -select DATE_FORMAT(DATE_ADD(clos_dt, INTERVAL 1 DAY), '%Y-%m-%dT%H:%i:%s') - , DATE_FORMAT(null, '%Y-%m-%dT%H:%i:%s') - , DATE_FORMAT('', '%Y-%m-%dT%H:%i:%s') - , DATE_FORMAT('2024-09-05T23:59:59', '%Y%m%d%H%i%s') -, sysdate() - from tb_ens_unity_sndng_mastr; + SELECT tesm.sndng_mastr_id + , tesm.unity_sndng_mastr_id + , tesm.tmplat_id + , tesm.sndng_co + , tesm.try_seq + , tesm.sndng_process_sttus + , teusm.try1 + , teusm.try2 + , teusm.try3 + , teusm.try_cnt + FROM tb_ens_sndng_mastr tesm + JOIN tb_ens_unity_sndng_mastr teusm + ON tesm.unity_sndng_mastr_id = teusm.unity_sndng_mastr_id + WHERE tesm.sndng_process_sttus IN ('send-ok', 'sending1', 'sending2') + AND tesm.signgu_code = '51110' + AND tesm.ffnlg_code = '11'; + + SELECT tekmd.document_binder_uuid + FROM tb_ens_sndng_mastr tesm + JOIN tb_ens_kakao_my_doc tekmd + ON tesm.sndng_mastr_id = tekmd.sndng_mastr_id + WHERE tesm.sndng_process_sttus IN ('send-ok', 'sending1', 'sending2') + AND tesm.unity_sndng_mastr_id = '3094' + AND IFNULL(tekmd.document_binder_uuid, '') != '' + AND tesm.signgu_code = '51110' + AND tesm.ffnlg_code = '11'; diff --git a/mens-api/src/main/java/kr/xit/ens/kakao/v2/service/KkotalkEltrcDocService.java b/mens-api/src/main/java/kr/xit/ens/kakao/v2/service/KkotalkEltrcDocService.java index bfa80e6..961a6cb 100644 --- a/mens-api/src/main/java/kr/xit/ens/kakao/v2/service/KkotalkEltrcDocService.java +++ b/mens-api/src/main/java/kr/xit/ens/kakao/v2/service/KkotalkEltrcDocService.java @@ -290,9 +290,9 @@ public class KkotalkEltrcDocService extends AbstractService implements KkotalkDocDTO.ValidTokenResponse.class, getRlaybsnmInfo(reqDTO)); // FIXME: USED ?? - if(!"USED".equals(validTokenRes.getStatus())){ - return ApiResponseDTO.error(validTokenRes.getErrorCode(), validTokenRes.getErrorMessage()); - } + // if(!"USED".equals(validTokenRes.getStatus())){ + // return ApiResponseDTO.error(validTokenRes.getErrorCode(), validTokenRes.getErrorMessage()); + // } // 문서상태 변경 final String url2 = HOST + API_MODIFY_STATUS[0].replace(ENVELOPE_ID, reqDTO.getEnvelopeId()); 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 aa51dff..600f8ae 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 @@ -903,8 +903,8 @@ UPDATE tb_ens_kakao_d10 SET external_id = #{externalId} , envelope_id = #{envelopeId} - , error_code = #{error_code} - , error_message = #{error_message} + , error_code = #{errorCode} + , error_message = #{errorMessage} , updt_dt = now() , updusr = 'batch' WHERE unity_sndng_detail_id = #{externalId}