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