|
|
|
@ -84,8 +84,6 @@ public class EnsBatchAcceptService extends AbstractService implements IEnsBatchA
|
|
|
|
|
/**
|
|
|
|
|
* 춘천 시스템 여부
|
|
|
|
|
*/
|
|
|
|
|
private static final boolean IS_CCN = ApiConstants.PROFILE.matches(".*-ccn");
|
|
|
|
|
|
|
|
|
|
private final ApiWebClientUtil apiWebClient;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -124,8 +122,8 @@ public class EnsBatchAcceptService extends AbstractService implements IEnsBatchA
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional(propagation = Propagation.REQUIRES_NEW)
|
|
|
|
|
public void accept(final EnsDTO.BatchEnsRequest reqDTO) {
|
|
|
|
|
if(IS_CCN) reqDTO.setSndngProcessSttus(MappingCcnSndngProcessStatus.fromEns(SndngProcessStatus.ACCEPT.getCode()));
|
|
|
|
|
else reqDTO.setSndngProcessSttus(MappingCanSndngProcessStatus.fromEns(SndngProcessStatus.ACCEPT.getCode()));
|
|
|
|
|
if(ApiConstants.IS_CCN) reqDTO.setSndngProcessSttus(MappingCcnSndngProcessStatus.fromEns(SndngProcessStatus.ACCEPT.getCode()));
|
|
|
|
|
else reqDTO.setSndngProcessSttus(MappingCanSndngProcessStatus.fromEns(SndngProcessStatus.ACCEPT.getCode()));
|
|
|
|
|
final List<SndngMssageParam> list = mapper.selectAcceptTgts(reqDTO);
|
|
|
|
|
String sndngDt = null;
|
|
|
|
|
|
|
|
|
@ -133,7 +131,7 @@ public class EnsBatchAcceptService extends AbstractService implements IEnsBatchA
|
|
|
|
|
//try {
|
|
|
|
|
dto.setSignguCode(reqDTO.getSignguCode());
|
|
|
|
|
dto.setFfnlgCode(reqDTO.getFfnlgCode());
|
|
|
|
|
dto.setProfile(ApiConstants.PROFILE);
|
|
|
|
|
dto.setProfile(ApiConstants.IS_PROFILE_LOCAL? "local" : "prod");
|
|
|
|
|
final List<String> mstIdList = new ArrayList<>();
|
|
|
|
|
String mstId = "";
|
|
|
|
|
if (!Objects.equals(mstId, dto.getUnitySndngMastrId())) {
|
|
|
|
@ -183,7 +181,7 @@ public class EnsBatchAcceptService extends AbstractService implements IEnsBatchA
|
|
|
|
|
insCnt));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CmmEnsBizUtils.setMappingProcessStatus(IS_CCN, dto, SndngProcessStatus.ACCEPT_OK.getCode());
|
|
|
|
|
CmmEnsBizUtils.setMappingProcessStatus(dto, SndngProcessStatus.ACCEPT_OK.getCode());
|
|
|
|
|
if (mapper.updateProcessSttusCntcSndngMst(dto) != 1) {
|
|
|
|
|
throw BizRuntimeException.create("접수 데이타 생성(통합발송마스터 상태변경) 실패");
|
|
|
|
|
}
|
|
|
|
@ -323,7 +321,7 @@ public class EnsBatchAcceptService extends AbstractService implements IEnsBatchA
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 춘천인 경우 DICI를 통한 CI 획득
|
|
|
|
|
if(IS_CCN) {
|
|
|
|
|
if(ApiConstants.IS_CCN) {
|
|
|
|
|
boolean isScc = requestNiceDici(dto, ihidnumManageId);
|
|
|
|
|
if(isScc) isSuccess = true;
|
|
|
|
|
}else{
|
|
|
|
@ -482,7 +480,7 @@ public class EnsBatchAcceptService extends AbstractService implements IEnsBatchA
|
|
|
|
|
.errorMssage(stsErrMsg)
|
|
|
|
|
.build();
|
|
|
|
|
|
|
|
|
|
CmmEnsBizUtils.setMappingProcessStatus(IS_CCN, dto, SndngProcessStatus.ACCEPT_FAIL.getCode());
|
|
|
|
|
CmmEnsBizUtils.setMappingProcessStatus(dto, SndngProcessStatus.ACCEPT_FAIL.getCode());
|
|
|
|
|
if (mapper.updateProcessSttusCntcSndngMst(dto) != 1) {
|
|
|
|
|
throw BizRuntimeException.create("[accept]연계 발송 마스터 상태변경 실패");
|
|
|
|
|
}
|
|
|
|
|