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