|
|
@ -56,11 +56,6 @@ public class EnsBatchExtractService extends AbstractService implements
|
|
|
|
|
|
|
|
|
|
|
|
private final IEnsBatchMapper mapper;
|
|
|
|
private final IEnsBatchMapper mapper;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 춘천 시스템 여부
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
private static final boolean IS_CCN = ApiConstants.PROFILE.matches(".*-ccn");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//-----------------------------------------------------------------------------------------------------------------
|
|
|
|
//-----------------------------------------------------------------------------------------------------------------
|
|
|
|
// REQUIRES_NEW service method
|
|
|
|
// REQUIRES_NEW service method
|
|
|
|
//-----------------------------------------------------------------------------------------------------------------
|
|
|
|
//-----------------------------------------------------------------------------------------------------------------
|
|
|
@ -234,17 +229,17 @@ public class EnsBatchExtractService extends AbstractService implements
|
|
|
|
final String status = dto.getNewSndngProcessSttus();
|
|
|
|
final String status = dto.getNewSndngProcessSttus();
|
|
|
|
|
|
|
|
|
|
|
|
if ("SndngAcceptJob".equals(dto.getErrorCode())) {
|
|
|
|
if ("SndngAcceptJob".equals(dto.getErrorCode())) {
|
|
|
|
CmmEnsBizUtils.setMappingProcessStatus(IS_CCN, dto, status);
|
|
|
|
CmmEnsBizUtils.setMappingProcessStatus(dto, status);
|
|
|
|
mapper.updateProcessSttusCntcSndngMst(dto);
|
|
|
|
mapper.updateProcessSttusCntcSndngMst(dto);
|
|
|
|
|
|
|
|
|
|
|
|
} else if ("SndngMakeJob".equals(dto.getErrorCode())) {
|
|
|
|
} else if ("SndngMakeJob".equals(dto.getErrorCode())) {
|
|
|
|
CmmEnsBizUtils.setMappingProcessStatus(IS_CCN, dto, status);
|
|
|
|
CmmEnsBizUtils.setMappingProcessStatus(dto, status);
|
|
|
|
mapper.updateProcessSttusCntcSndngMst(dto);
|
|
|
|
mapper.updateProcessSttusCntcSndngMst(dto);
|
|
|
|
dto.setNewSndngProcessSttus(status);
|
|
|
|
dto.setNewSndngProcessSttus(status);
|
|
|
|
mapper.updateProcessSttusUnitySndngMst(dto);
|
|
|
|
mapper.updateProcessSttusUnitySndngMst(dto);
|
|
|
|
|
|
|
|
|
|
|
|
} else if ("SndngSendBulksJob".equals(dto.getErrorCode())) {
|
|
|
|
} else if ("SndngSendBulksJob".equals(dto.getErrorCode())) {
|
|
|
|
CmmEnsBizUtils.setMappingProcessStatus(IS_CCN, dto, status);
|
|
|
|
CmmEnsBizUtils.setMappingProcessStatus(dto, status);
|
|
|
|
mapper.updateProcessSttusCntcSndngMst(dto);
|
|
|
|
mapper.updateProcessSttusCntcSndngMst(dto);
|
|
|
|
dto.setNewSndngProcessSttus(status);
|
|
|
|
dto.setNewSndngProcessSttus(status);
|
|
|
|
mapper.updateProcessSttusUnitySndngMst(dto);
|
|
|
|
mapper.updateProcessSttusUnitySndngMst(dto);
|
|
|
@ -278,7 +273,7 @@ public class EnsBatchExtractService extends AbstractService implements
|
|
|
|
private void updateMstTable(SndngMssageParam paramDTO, SndngSeCode seCode) {
|
|
|
|
private void updateMstTable(SndngMssageParam paramDTO, SndngSeCode seCode) {
|
|
|
|
final String status = paramDTO.getNewSndngProcessSttus();
|
|
|
|
final String status = paramDTO.getNewSndngProcessSttus();
|
|
|
|
|
|
|
|
|
|
|
|
CmmEnsBizUtils.setMappingProcessStatus(IS_CCN, paramDTO, status);
|
|
|
|
CmmEnsBizUtils.setMappingProcessStatus(paramDTO, status);
|
|
|
|
if(mapper.updateProcessSttusCntcSndngMst(paramDTO) != 1) {
|
|
|
|
if(mapper.updateProcessSttusCntcSndngMst(paramDTO) != 1) {
|
|
|
|
throw BizRuntimeException.create(String.format("[send-%s]연계 발송 마스터 상태변경 실패", seCode.getCode()));
|
|
|
|
throw BizRuntimeException.create(String.format("[send-%s]연계 발송 마스터 상태변경 실패", seCode.getCode()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|