fix: kakaotalk API call 에러처리시 매핑값 fix

main
Jonguk. Lim 3 months ago
parent 5156a2658b
commit ef086d671f

@ -32,6 +32,8 @@ select * from tb_ens_unity_sndng_mastr;
select * from tb_ens_unity_sndng_detail; select * from tb_ens_unity_sndng_detail;
select * from tb_ens_ci; select * from tb_ens_ci;
select * from tb_ens_sndng_mastr;
select * from tb_ens_ihidnum_manage; select * from tb_ens_ihidnum_manage;
select * from tb_ens_ci_manage; select * from tb_ens_ci_manage;
@ -64,28 +66,29 @@ where teim.ihidnum = 'RUNCNjEwM0JERENGMEMzNjRBOTAyMERERjg5MDFEODc=';
WHERE teim.ihidnum = 'RUNCNjEwM0JERENGMEMzNjRBOTAyMERERjg5MDFEODc='; WHERE teim.ihidnum = 'RUNCNjEwM0JERENGMEMzNjRBOTAyMERERjg5MDFEODc=';
SELECT tesm.sndng_mastr_id
, tesm.unity_sndng_mastr_id
common_categories, , tesm.tmplat_id
read_expired_at, /* 처리마감시간 */ , tesm.sndng_co
-- recv_ci, /* 받는이 CI */ , tesm.try_seq
recv_phone_number, /* 받는이 전화번호 */ , tesm.sndng_process_sttus
recv_name, /* 받는이 이름 */ , teusm.try1
recv_birthday, /* 받는이 생년월일 */ , teusm.try2
recv_is_required_verify_name,/* 성명검증옵션 */ , teusm.try3
prop_link, /* 모바일페이지 URL */ , teusm.try_cnt
prop_payload, FROM tb_ens_sndng_mastr tesm
prop_message, JOIN tb_ens_unity_sndng_mastr teusm
prop_cs_number, /* 고객센터 전화번호 */ ON tesm.unity_sndng_mastr_id = teusm.unity_sndng_mastr_id
prop_cs_name, /* 고객센터 명 */ WHERE tesm.sndng_process_sttus IN ('send-ok', 'sending1', 'sending2')
-- external_document_uuid,/* 외부문서 식별번호 */ AND tesm.signgu_code = '51110'
regist_dt, AND tesm.ffnlg_code = '11';
register
SELECT tekmd.document_binder_uuid
FROM tb_ens_sndng_mastr tesm
select DATE_FORMAT(DATE_ADD(clos_dt, INTERVAL 1 DAY), '%Y-%m-%dT%H:%i:%s') JOIN tb_ens_kakao_my_doc tekmd
, DATE_FORMAT(null, '%Y-%m-%dT%H:%i:%s') ON tesm.sndng_mastr_id = tekmd.sndng_mastr_id
, DATE_FORMAT('', '%Y-%m-%dT%H:%i:%s') WHERE tesm.sndng_process_sttus IN ('send-ok', 'sending1', 'sending2')
, DATE_FORMAT('2024-09-05T23:59:59', '%Y%m%d%H%i%s') AND tesm.unity_sndng_mastr_id = '3094'
, sysdate() AND IFNULL(tekmd.document_binder_uuid, '') != ''
from tb_ens_unity_sndng_mastr; AND tesm.signgu_code = '51110'
AND tesm.ffnlg_code = '11';

@ -290,9 +290,9 @@ public class KkotalkEltrcDocService extends AbstractService implements
KkotalkDocDTO.ValidTokenResponse.class, getRlaybsnmInfo(reqDTO)); KkotalkDocDTO.ValidTokenResponse.class, getRlaybsnmInfo(reqDTO));
// FIXME: USED ?? // FIXME: USED ??
if(!"USED".equals(validTokenRes.getStatus())){ // if(!"USED".equals(validTokenRes.getStatus())){
return ApiResponseDTO.error(validTokenRes.getErrorCode(), validTokenRes.getErrorMessage()); // return ApiResponseDTO.error(validTokenRes.getErrorCode(), validTokenRes.getErrorMessage());
} // }
// 문서상태 변경 // 문서상태 변경
final String url2 = HOST + API_MODIFY_STATUS[0].replace(ENVELOPE_ID, reqDTO.getEnvelopeId()); final String url2 = HOST + API_MODIFY_STATUS[0].replace(ENVELOPE_ID, reqDTO.getEnvelopeId());

@ -903,8 +903,8 @@
UPDATE tb_ens_kakao_d10 UPDATE tb_ens_kakao_d10
SET external_id = #{externalId} SET external_id = #{externalId}
, envelope_id = #{envelopeId} , envelope_id = #{envelopeId}
, error_code = #{error_code} , error_code = #{errorCode}
, error_message = #{error_message} , error_message = #{errorMessage}
, updt_dt = now() , updt_dt = now()
, updusr = 'batch' , updusr = 'batch'
WHERE unity_sndng_detail_id = #{externalId} WHERE unity_sndng_detail_id = #{externalId}

Loading…
Cancel
Save