feat: 카카오톡 추가 반영

main
Jonguk. Lim 2 months ago
parent 80301b1c94
commit 650b49b81c

@ -1,44 +1,36 @@
package cokr.xit.ens.biz.iup.signtalk.service.support; package cokr.xit.ens.biz.iup.signtalk.service.support;
import cokr.xit.ens.biz.iup.code.IupPrcsCd; import java.time.*;
import cokr.xit.ens.biz.iup.code.IupSendTypeCd; import java.time.format.*;
import cokr.xit.ens.biz.iup.domain.TbInputDataXit; import java.util.*;
import cokr.xit.ens.biz.iup.domain.TbInputXit; import java.util.concurrent.atomic.*;
import cokr.xit.ens.biz.iup.domain.repository.TbInputDataXitRepository; import java.util.stream.*;
import cokr.xit.ens.biz.iup.domain.repository.TbInputXitRepository;
import cokr.xit.ens.biz.iup.signtalk.service.support.accept.AcptDocKkoMd;
import cokr.xit.ens.biz.iup.signtalk.service.support.accept.AcptDocNvSt;
import cokr.xit.ens.core.aop.EnsResponseVO;
import cokr.xit.ens.core.exception.EnsException;
import cokr.xit.ens.core.exception.code.EnsErrCd;
import cokr.xit.ens.core.utils.CmmnUtil;
import cokr.xit.ens.modules.common.biztmplt.EnsPhaseProcSupport;
import cokr.xit.ens.modules.common.code.VenderCd;
import cokr.xit.ens.core.model.EnsBillAcptReqDTO;
import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.code.BillSeCd;
import cokr.xit.ens.modules.common.ctgy.intgrnnoti.model.IntgrnNotiAcceptReqDTO;
import cokr.xit.ens.modules.common.ctgy.intgrnnoti.model.config.AcptData;
import cokr.xit.ens.modules.common.ctgy.intgrnnoti.model.config.Document;
import cokr.xit.ens.modules.common.ctgy.intgrnnoti.model.config.Receiver;
import cokr.xit.ens.modules.common.ctgy.intgrnnoti.model.config.XitProperty;
import cokr.xit.ens.modules.common.ctgy.intgrnnoti.service.IntgrnNotiService;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import net.bytebuddy.utility.RandomString;
import org.springframework.beans.factory.annotation.Value; import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component; import org.springframework.stereotype.*;
import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.*;
import org.springframework.transaction.annotation.Transactional;
import net.bytebuddy.utility.*;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter; import com.google.gson.*;
import java.util.HashMap;
import java.util.List; import cokr.xit.ens.biz.iup.code.*;
import java.util.Map; import cokr.xit.ens.biz.iup.domain.*;
import java.util.concurrent.atomic.AtomicInteger; import cokr.xit.ens.biz.iup.domain.repository.*;
import java.util.stream.Collectors; import cokr.xit.ens.biz.iup.signtalk.service.support.accept.*;
import cokr.xit.ens.core.aop.*;
import cokr.xit.ens.core.exception.*;
import cokr.xit.ens.core.exception.code.*;
import cokr.xit.ens.core.model.*;
import cokr.xit.ens.core.utils.*;
import cokr.xit.ens.modules.common.biztmplt.*;
import cokr.xit.ens.modules.common.code.*;
import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.code.*;
import cokr.xit.ens.modules.common.ctgy.intgrnnoti.model.*;
import cokr.xit.ens.modules.common.ctgy.intgrnnoti.model.config.*;
import cokr.xit.ens.modules.common.ctgy.intgrnnoti.service.*;
import lombok.*;
import lombok.extern.slf4j.*;
@Slf4j @Slf4j
@Component @Component
@ -236,7 +228,9 @@ public class IupSigntalkAcceptor implements EnsPhaseProcSupport<EnsResponseVO, L
.kko_md(new AcptDocKkoMd(data, MBLPAGE_URL + MBLPAGE_PATH).createDocument()) .kko_md(new AcptDocKkoMd(data, MBLPAGE_URL + MBLPAGE_PATH).createDocument())
.kko_at(null) .kko_at(null)
// .nv_st(new AcptDocNvSt(data, NV_ST_ORG_ID, MBLPAGE_URL + MBLPAGE_PATH).createDocument()) // FIXME: 카카오톡 추가
.kko_talk(new AcptDocKkoTalk(data, MBLPAGE_URL + MBLPAGE_PATH).createDocument())
.nv_st(new AcptDocNvSt(data, null, MBLPAGE_URL + MBLPAGE_PATH).createDocument()) .nv_st(new AcptDocNvSt(data, null, MBLPAGE_URL + MBLPAGE_PATH).createDocument())
.build()) .build())
.xit_property(XitProperty.builder() .xit_property(XitProperty.builder()

@ -0,0 +1,35 @@
package cokr.xit.ens.biz.iup.signtalk.service.support.accept;
import cokr.xit.ens.biz.iup.domain.*;
import cokr.xit.ens.modules.kkomydoc.model.config.*;
import cokr.xit.ens.modules.kkotalk.model.*;
import lombok.*;
@RequiredArgsConstructor
public class AcptDocKkoTalk implements Accept<KkotalkApiDTO.Envelope> {
private final TbInputDataXit tbInputDataXit;
private final String redirectUrl;
@Override
public KkotalkApiDTO.Envelope createDocument() {
return KkotalkApiDTO.Envelope.builder()
.hash(null)
.build();
}
private Property createProperty(TbInputDataXit data) {
return Property.builder()
// .link(data.getPayUrl())
.link(redirectUrl)
.payload(null)
.message(null)
.cs_name("문의처")
.cs_number(data.getCallCenterNo())
// .external_document_uuid(data.getDataId())
// .external_document_uuid(data.getLinkedUuid())
.build();
}
}

@ -1,29 +1,24 @@
package cokr.xit.ens.modules.common.ctgy.intgrnnoti.service.support.kkotalk; package cokr.xit.ens.modules.common.ctgy.intgrnnoti.service.support.kkotalk;
import java.util.Arrays; import java.util.*;
import java.util.HashMap; import java.util.stream.*;
import java.util.List;
import java.util.Map; import org.springframework.context.*;
import java.util.stream.Collectors; import org.springframework.stereotype.*;
import org.springframework.context.ApplicationEventPublisher; import cokr.xit.ens.core.aop.*;
import org.springframework.stereotype.Component; import cokr.xit.ens.core.exception.code.*;
import cokr.xit.ens.core.monitor.slack.event.*;
import cokr.xit.ens.core.aop.EnsResponseVO; import cokr.xit.ens.modules.common.code.*;
import cokr.xit.ens.core.exception.code.EnsErrCd; import cokr.xit.ens.modules.common.ctgy.intgrnnoti.domain.*;
import cokr.xit.ens.core.monitor.slack.event.MonitorEvent; import cokr.xit.ens.modules.common.ctgy.intgrnnoti.domain.repository.*;
import cokr.xit.ens.modules.common.code.PostSeCd; import cokr.xit.ens.modules.common.ctgy.intgrnnoti.service.support.*;
import cokr.xit.ens.modules.common.code.StatCd; import cokr.xit.ens.modules.common.monitor.*;
import cokr.xit.ens.modules.common.ctgy.intgrnnoti.domain.IntgrnSendDetail; import cokr.xit.ens.modules.kkomydoc.service.event.*;
import cokr.xit.ens.modules.common.ctgy.intgrnnoti.domain.repository.IntgrnSendDetailRepository; import cokr.xit.ens.modules.kkotalk.model.*;
import cokr.xit.ens.modules.common.ctgy.intgrnnoti.service.support.AcceptDataEventListener; import cokr.xit.ens.modules.kkotalk.service.*;
import cokr.xit.ens.modules.common.monitor.MessageByPhase; import lombok.*;
import cokr.xit.ens.modules.kkomydoc.service.event.KkoMydocSendRealtimeEvent; import lombok.extern.slf4j.*;
import cokr.xit.ens.modules.kkomydoc.service.event.KkoMydocSendReserveEvent;
import cokr.xit.ens.modules.kkotalk.model.KkotalkDTO;
import cokr.xit.ens.modules.kkotalk.service.KkoTalkService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
// FIXME: 카카오톡 신규 추가 // FIXME: 카카오톡 신규 추가
@Slf4j @Slf4j
@ -38,7 +33,7 @@ public class AcceptByKkoTalkEventListener implements AcceptDataEventListener<Acc
@Override @Override
public void accept(AcceptDataByKkoTalk ev) { public void accept(AcceptDataByKkoTalk ev) {
final PostSeCd POST_SE_CD = PostSeCd.kkoMydoc; final PostSeCd POST_SE_CD = PostSeCd.kkoTalk;
EnsResponseVO responseVO = null; EnsResponseVO responseVO = null;
try { try {

Loading…
Cancel
Save