feat: 카카오톡 추가 반영 - 모바일 페이지 처리

main
Jonguk. Lim 2 months ago
parent 8d9a444896
commit a85459c44a

@ -39,13 +39,10 @@ public class KkoTalkMblPageController extends MblPageControllerSupport {
final String envelopeId = mParam.get("envelopeId");
final String externalId = mParam.get("externalId");
try {
if (CmmnUtil.isEmpty(token) && CmmnUtil.isEmpty(envelopeId) && CmmnUtil.isEmpty(externalId))
throw new EnsException(EnsErrCd.ERR410, "정상적인 요청이 아닙니다. 재인증 후 시도하시기 바랍니다.");
// 조직코드값 조회
Map<String, String> param = new HashMap<>();
param.put("envelopeId", envelopeId);
param.put("externalId", externalId);
@ -55,8 +52,6 @@ public class KkoTalkMblPageController extends MblPageControllerSupport {
SendDetailKkoTalkDTO sendDetailKkoTalkDTO = kkoTalkMapper.findFetchByExternalIdAndEnvelopeId(param)
.orElseThrow(() -> new EnsException(EnsErrCd.ERR404, String.format("일치하는 자료가 없습니다. [ envelopeId %s externalId %s ]", envelopeId, externalId)));
EnsResponseVO<?> responseVO = kkoTalkService.tokenVerify(sendMast.getOrgCd(), envelopeId, token, externalId);
if (!EnsErrCd.OK.equals(responseVO.getErrCode()))
throw new EnsException(responseVO.getErrCode(), responseVO.getErrMsg());

@ -327,7 +327,7 @@ public class KkoTalkService {
}
// FIXME: 카카오톡 적용 확인
String envelopeStatus = (String) mResponse.get("envelopeStatus");
String envelopeStatus = (String) mResponse.get("status");
if (!CmmnUtil.isEmpty(envelopeStatus)) {
responseVO = EnsResponseVO.okBuilder()
.resultInfo(mResponse)
@ -361,14 +361,14 @@ public class KkoTalkService {
.envelopeId(envelopId)
.envelopeId(externalId)
.token(token)
.tokenStatus((String) resultInfo.get("token_status"))
.tokenUsedAt((String) resultInfo.get("used_at"))
.sentAt((String) resultInfo.get("sent_at"))
.receivedAt((String) resultInfo.get("received_at"))
.authenticatedAt((String) resultInfo.get("authenticated_at"))
.userNotifiedAt((String) resultInfo.get("user_notified_at"))
.tokenStatus((String) resultInfo.get("status"))
//.tokenUsedAt((String) resultInfo.get("used_at"))
.sentAt((String) resultInfo.get("sentAt"))
.receivedAt((String) resultInfo.get("receivedAt"))
.authenticatedAt((String) resultInfo.get("authenticatedAt"))
.userNotifiedAt((String) resultInfo.get("userNotifiedAt"))
.payload((String) resultInfo.get("payload"))
.signedAt((String) resultInfo.get("signed_at"))
//.signedAt((String) resultInfo.get("signed_at"))
.build());
} else {
sendDetailKkoTalkTokenHistRepository.save(SendDetailKkoTalkTokenHist.builder()

@ -133,7 +133,7 @@
/** iup-kkotalk-mapper|findFetchByExternalIdAndEnvelopeId-카카오톡 발송 결과 대상?? 조회|julim */
<include refid="sqlSelectSendDetailKkoTalk"/>
FROM ens_snd_dtl_kko_talk
WHERE envelope_id = #{envelope_id}
WHERE envelope_id = #{envelopeId}
<if test="externalId != null and externalId != ''">
AND external_id = #{externalId}
</if>

Loading…
Cancel
Save