|
|
@ -1,6 +1,11 @@
|
|
|
|
package kr.xit.biz.kt.service;
|
|
|
|
package kr.xit.biz.kt.service;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.List;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
|
|
import kr.xit.biz.cmm.service.ICmmEnsCacheService;
|
|
|
|
import kr.xit.biz.cmm.service.ICmmEnsCacheService;
|
|
|
|
import kr.xit.biz.common.ApiConstants;
|
|
|
|
import kr.xit.biz.common.ApiConstants;
|
|
|
|
import kr.xit.biz.ens.model.cmm.CmmEnsRequestDTO;
|
|
|
|
import kr.xit.biz.ens.model.cmm.CmmEnsRequestDTO;
|
|
|
@ -11,26 +16,23 @@ import kr.xit.biz.ens.model.kt.KtCommonDTO.KtMnsRequest;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtMmsSendDTO.KtMsgRsltReqData;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtMmsSendDTO.KtMsgRsltReqData;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtMmsSendDTO.KtMsgRsltRequest;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtMmsSendDTO.KtMsgRsltRequest;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtTokenDTO.KtTokenResponse;
|
|
|
|
import kr.xit.biz.ens.model.kt.KtTokenDTO.KtTokenResponse;
|
|
|
|
import kr.xit.biz.kt.mapper.IBizKtMmsMapper;
|
|
|
|
import kr.xit.biz.kt.mapper.IBizKtBcMapper;
|
|
|
|
import kr.xit.core.exception.BizRuntimeException;
|
|
|
|
import kr.xit.core.exception.BizRuntimeException;
|
|
|
|
import kr.xit.core.service.AbstractService;
|
|
|
|
import kr.xit.core.service.AbstractService;
|
|
|
|
import kr.xit.core.spring.annotation.TraceLogging;
|
|
|
|
import kr.xit.core.spring.annotation.TraceLogging;
|
|
|
|
import kr.xit.core.support.utils.Checks;
|
|
|
|
import kr.xit.core.support.utils.Checks;
|
|
|
|
import kr.xit.core.support.utils.DateUtils;
|
|
|
|
import kr.xit.core.support.utils.DateUtils;
|
|
|
|
import kr.xit.ens.cmm.CmmEnsUtils;
|
|
|
|
import kr.xit.ens.cmm.CmmEnsUtils;
|
|
|
|
import kr.xit.ens.kt.service.IKtMmsService;
|
|
|
|
import kr.xit.ens.kt.service.IKtBcService;
|
|
|
|
import kr.xit.ens.kt.web.KtMmsInboundController;
|
|
|
|
import kr.xit.ens.kt.web.KtBcInboundController;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* <pre>
|
|
|
|
* <pre>
|
|
|
|
* description :
|
|
|
|
* description :
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* packageName : kr.xit.biz.kt.service
|
|
|
|
* packageName : kr.xit.biz.kt.service
|
|
|
|
* fileName : BizKtMmsService
|
|
|
|
* fileName : BizKtBcService
|
|
|
|
* author : limju
|
|
|
|
* author : limju
|
|
|
|
* date : 2023-09-22
|
|
|
|
* date : 2023-09-22
|
|
|
|
* ======================================================================
|
|
|
|
* ======================================================================
|
|
|
@ -42,10 +44,10 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
@RequiredArgsConstructor
|
|
|
|
@Service
|
|
|
|
@Service
|
|
|
|
public class BizKtMmsService extends AbstractService implements IBizKtMmsService {
|
|
|
|
public class BizKtBcService extends AbstractService implements IBizKtBcService {
|
|
|
|
private final IKtMmsService ktMmsService;
|
|
|
|
private final IKtBcService ktMmsService;
|
|
|
|
private final ICmmEnsCacheService cacheService;
|
|
|
|
private final ICmmEnsCacheService cacheService;
|
|
|
|
private final IBizKtMmsMapper mapper;
|
|
|
|
private final IBizKtBcMapper mapper;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* <pre>
|
|
|
|
* <pre>
|
|
|
@ -90,7 +92,7 @@ public class BizKtMmsService extends AbstractService implements IBizKtMmsService
|
|
|
|
* 사전/본 문자 발송/수신 결과 전송
|
|
|
|
* 사전/본 문자 발송/수신 결과 전송
|
|
|
|
* - KT 에서 호출 되는 서비스
|
|
|
|
* - KT 에서 호출 되는 서비스
|
|
|
|
* - http://{각대행사(IP:Port)}/api/ag/message/result
|
|
|
|
* - http://{각대행사(IP:Port)}/api/ag/message/result
|
|
|
|
* {@link KtMmsInboundController#messageResult messageResult}
|
|
|
|
* {@link KtBcInboundController#messageResult messageResult}
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* 본문자 수신 등록 요청시 보낸 묶음 단위로 처리
|
|
|
|
* 본문자 수신 등록 요청시 보낸 묶음 단위로 처리
|
|
|
|
* -> 처리중 1건이라도 실패시, 전체 건 재 전송
|
|
|
|
* -> 처리중 1건이라도 실패시, 전체 건 재 전송
|