|
|
|
@ -1,54 +1,36 @@
|
|
|
|
|
package cokr.xit.ens.modules.kkotalk.service.support;
|
|
|
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
import java.util.Optional;
|
|
|
|
|
import java.util.Set;
|
|
|
|
|
import java.util.concurrent.atomic.AtomicInteger;
|
|
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
|
|
|
|
import javax.validation.ConstraintViolation;
|
|
|
|
|
import javax.validation.Validation;
|
|
|
|
|
import javax.validation.Validator;
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
import org.springframework.transaction.annotation.Propagation;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
import com.google.gson.Gson;
|
|
|
|
|
import com.google.gson.GsonBuilder;
|
|
|
|
|
|
|
|
|
|
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.core.utils.DateUtil;
|
|
|
|
|
import cokr.xit.ens.core.utils.IdGenerator;
|
|
|
|
|
import cokr.xit.ens.core.utils.MapDeserailizer;
|
|
|
|
|
import cokr.xit.ens.core.utils.crypto.AES256;
|
|
|
|
|
import cokr.xit.ens.core.utils.crypto.Crypto;
|
|
|
|
|
import cokr.xit.ens.modules.common.biztmplt.EnsPhaseProcSupport;
|
|
|
|
|
import cokr.xit.ens.modules.common.code.PostSeCd;
|
|
|
|
|
import cokr.xit.ens.modules.common.code.StatCd;
|
|
|
|
|
import cokr.xit.ens.modules.common.code.VenderCd;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.entity.Bill;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.entity.repository.BillRepository;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.mblpage.domain.SendDetailMblPage;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.mblpage.domain.repository.SendDetailMblPageRepository;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.sys.mng.domain.OrgMng;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.sys.mng.service.KeySequenceService;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.sys.mng.service.OrgMngService;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.sys.mng.service.TmpltMngService;
|
|
|
|
|
import cokr.xit.ens.modules.common.domain.SendMast;
|
|
|
|
|
import cokr.xit.ens.modules.common.domain.repository.SendMastRepository;
|
|
|
|
|
import cokr.xit.ens.modules.kkomydoc.model.config.XitProperty;
|
|
|
|
|
import cokr.xit.ens.modules.kkotalk.mapper.IKkoTalkMapper;
|
|
|
|
|
import cokr.xit.ens.modules.kkotalk.model.KkotalkDTO;
|
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.concurrent.atomic.*;
|
|
|
|
|
import java.util.stream.*;
|
|
|
|
|
|
|
|
|
|
import javax.validation.*;
|
|
|
|
|
|
|
|
|
|
import org.springframework.stereotype.*;
|
|
|
|
|
import org.springframework.transaction.annotation.*;
|
|
|
|
|
|
|
|
|
|
import com.google.gson.*;
|
|
|
|
|
|
|
|
|
|
import cokr.xit.ens.core.aop.*;
|
|
|
|
|
import cokr.xit.ens.core.exception.*;
|
|
|
|
|
import cokr.xit.ens.core.exception.code.*;
|
|
|
|
|
import cokr.xit.ens.core.utils.*;
|
|
|
|
|
import cokr.xit.ens.core.utils.crypto.*;
|
|
|
|
|
import cokr.xit.ens.modules.common.biztmplt.*;
|
|
|
|
|
import cokr.xit.ens.modules.common.code.*;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.entity.*;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.intgrnbill.support.entity.repository.*;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.mblpage.domain.*;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.mblpage.domain.repository.*;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.sys.mng.domain.*;
|
|
|
|
|
import cokr.xit.ens.modules.common.ctgy.sys.mng.service.*;
|
|
|
|
|
import cokr.xit.ens.modules.common.domain.*;
|
|
|
|
|
import cokr.xit.ens.modules.common.domain.repository.*;
|
|
|
|
|
import cokr.xit.ens.modules.kkomydoc.model.config.*;
|
|
|
|
|
import cokr.xit.ens.modules.kkotalk.mapper.*;
|
|
|
|
|
import cokr.xit.ens.modules.kkotalk.model.*;
|
|
|
|
|
import lombok.*;
|
|
|
|
|
import lombok.extern.slf4j.*;
|
|
|
|
|
|
|
|
|
|
// FIXME: 카카오톡 신규 추가
|
|
|
|
|
@Slf4j
|
|
|
|
@ -154,6 +136,7 @@ public class KkoTalkAcceptor implements EnsPhaseProcSupport<EnsResponseVO<?>, Kk
|
|
|
|
|
.closeDt(DateUtil.toLocalDateTime(reqDTO.getClose_dt()))
|
|
|
|
|
.build();
|
|
|
|
|
sendMastRepository.save(sendMast);
|
|
|
|
|
sendMastRepository.flush();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Gson gson = new GsonBuilder().disableHtmlEscaping().create();
|
|
|
|
@ -235,6 +218,7 @@ public class KkoTalkAcceptor implements EnsPhaseProcSupport<EnsResponseVO<?>, Kk
|
|
|
|
|
.filter(row -> CmmnUtil.isEmpty(row.getBillId()))
|
|
|
|
|
.collect(Collectors.toList())
|
|
|
|
|
);
|
|
|
|
|
billRepository.flush();
|
|
|
|
|
|
|
|
|
|
// kkotalk 발송상세 저장
|
|
|
|
|
sendDetails.forEach(d -> {
|
|
|
|
|