|
|
|
@ -356,21 +356,21 @@ public class EnsBatchStatusService extends AbstractService implements IEnsBatchS
|
|
|
|
|
// 종적추적 결과 set : 실패시 BizRuntimeException
|
|
|
|
|
// 배달완료시 시간 set
|
|
|
|
|
EpostTraceResTrackInfo traceDTO = epostResDTO.result();
|
|
|
|
|
mapper.updatePplusDlvrStatusFromEPostByRgistNo(traceDTO);
|
|
|
|
|
String statue = traceDTO.getDetaileTrackList().get(traceDTO.getDetaileTrackList().size()-1).getStatue().replace("\n", "");
|
|
|
|
|
|
|
|
|
|
dto.setDlvrSttus(traceDTO.getTrackState());
|
|
|
|
|
dto.setDlvrDetail(statue);
|
|
|
|
|
dto.setSenderData(Checks.isNotEmpty(traceDTO.getSenderData()) ? traceDTO.getSenderData() + "0000" : null);
|
|
|
|
|
dto.setReceiveDate(traceDTO.getReceiveDate());
|
|
|
|
|
dto.setReceiveName(traceDTO.getReceiveName());
|
|
|
|
|
|
|
|
|
|
mapper.updatePplusDlvrStatusFromEPostByRgistNo(dto);
|
|
|
|
|
}catch (BizRuntimeException e){
|
|
|
|
|
//TODO :: error 처리 확인 필요
|
|
|
|
|
mapper.updatePplusDlvrStatusFromEPostByRgistNo(
|
|
|
|
|
EpostTraceResTrackInfo.builder()
|
|
|
|
|
.regiNo(dto.getRgistNo())
|
|
|
|
|
.trackState(e.getMessage())
|
|
|
|
|
.build()
|
|
|
|
|
);
|
|
|
|
|
dto.setDlvrSttus(e.getMessage());
|
|
|
|
|
dto.setErrorCn(e.getMessage());
|
|
|
|
|
|
|
|
|
|
mapper.updatePplusDlvrStatusFromEPostByRgistNo(dto);
|
|
|
|
|
}
|
|
|
|
|
mapper.savePplusCntcSndngResult(dto);
|
|
|
|
|
}
|
|
|
|
|