|
|
|
@ -14,6 +14,7 @@ import kr.xit.biz.ens.model.EnsDTO;
|
|
|
|
|
import kr.xit.biz.ens.model.EnsDTO.SndngMssageParam;
|
|
|
|
|
import kr.xit.biz.ens.model.cntc.CntcDTO;
|
|
|
|
|
import kr.xit.biz.ens.model.kakao.KkopayDocBulkDTO.BulkSendResponses;
|
|
|
|
|
import kr.xit.biz.ens.model.kt.KtMmsSendDTO.KtMainSendReqData;
|
|
|
|
|
import kr.xit.biz.sms.service.ISmsMessageService;
|
|
|
|
|
import kr.xit.core.exception.BizRuntimeException;
|
|
|
|
|
import kr.xit.core.support.utils.Checks;
|
|
|
|
@ -69,6 +70,7 @@ public class EnsBatchRequireNewService extends EgovAbstractServiceImpl implement
|
|
|
|
|
* @param unitySndMstId String 통합발송 마스터 ID
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
|
|
|
|
public void saveKkoMyDocResult(final List<String> mstIdList, String unitySndMstId,
|
|
|
|
|
final List<BulkSendResponses> resList) {
|
|
|
|
@ -101,6 +103,7 @@ public class EnsBatchRequireNewService extends EgovAbstractServiceImpl implement
|
|
|
|
|
*
|
|
|
|
|
* @param tgtDTO EnsDTO.SndngMssageParam
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
|
|
|
|
public void sendEgreen(final EnsDTO.SndngMssageParam tgtDTO) {
|
|
|
|
|
final List<EnsDTO.PostSndng> list = mapper.selectPostTgts(tgtDTO);
|
|
|
|
@ -125,6 +128,7 @@ public class EnsBatchRequireNewService extends EgovAbstractServiceImpl implement
|
|
|
|
|
* @param tgtDTO EnsDTO.SndngMssageParam
|
|
|
|
|
* @see kr.xit.biz.sms.service.SmsMessageService#sendSmsList(List)
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
|
|
|
|
public void sendSms(final EnsDTO.SndngMssageParam tgtDTO) {
|
|
|
|
|
final List<EnsDTO.SmsSndng> list = mapper.selectSmsSendTgts(tgtDTO);
|
|
|
|
@ -141,12 +145,11 @@ public class EnsBatchRequireNewService extends EgovAbstractServiceImpl implement
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void sendKtBc(SndngMssageParam tgtDTO) {
|
|
|
|
|
// KtMainSendRequest infoDto = mapper.selectKtBcSendMstTgtInfo(tgtDTO)
|
|
|
|
|
// .orElseThrow(() -> BizRuntimeException.create("KT BC 본문자 수신 등록 대상이 존재 하지 않습니다 "));
|
|
|
|
|
// infoDto.getReqs().addAll(
|
|
|
|
|
// mapper.selectKtBcSendTgts(tgtDTO)
|
|
|
|
|
// );
|
|
|
|
|
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
|
|
|
|
public void saveSendKtBcResult(final List<KtMainSendReqData> sendReqs) {
|
|
|
|
|
sendReqs.forEach(
|
|
|
|
|
mapper::saveCntcSndngResult
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -167,7 +170,8 @@ public class EnsBatchRequireNewService extends EgovAbstractServiceImpl implement
|
|
|
|
|
* @param errMessage 에러메세지(API호출 결과 에러 메세지)
|
|
|
|
|
* </pre>
|
|
|
|
|
*/
|
|
|
|
|
private void insertCntcSndngResult(final String sndngSeCode,
|
|
|
|
|
@Transactional
|
|
|
|
|
public void insertCntcSndngResult(final String sndngSeCode,
|
|
|
|
|
final String unitySndngDetailId, final String code, final String errMessage) {
|
|
|
|
|
mapper.insertCntcSndngResult(CntcDTO.SndngResult.builder()
|
|
|
|
|
.unitySndngDetailId(unitySndngDetailId)
|
|
|
|
|