|
|
@ -71,17 +71,16 @@ public class ProjectService implements IProjectService { |
|
|
|
Long patientCarId = null; |
|
|
|
ProjectVo.BindCar bindCar = stepTaskDao.getBindCarTaskId(stepTask.getTaskSubId()); |
|
|
|
if(ObjectUtil.isNotNull(bindCar)){ |
|
|
|
patientCarId = bindCar.getCarId(); |
|
|
|
patientCarId = bindCar.getId(); |
|
|
|
} |
|
|
|
// 判断是否为结束结点
|
|
|
|
Step step = stepDao.selectByPrimaryKey(stepTask.getStepId()); |
|
|
|
Integer max = stepDao.getMaxSequence(Constant.STEP_TYPE_REAL); |
|
|
|
if (step != null && max != null && step.getSequence() != null && step.getSequence().intValue() == max.intValue()) { |
|
|
|
|
|
|
|
// 修改平车结束时间点
|
|
|
|
boolean needModifyEndTime = bindCar != null && (bindCar.getEndTime() == null || bindCar.getEndTime() == 0); |
|
|
|
if (needModifyEndTime) { |
|
|
|
log.info("出现异常,未找到绑定平车:{}", stepTask.getTaskSubId()); |
|
|
|
// log.info("出现异常,未找到绑定平车:{}", stepTask.getTaskSubId());
|
|
|
|
PatientWisdomCar patientWisdomCar = new PatientWisdomCar(); |
|
|
|
patientWisdomCar.setId(bindCar.getId()); |
|
|
|
patientWisdomCar.setEndTime(startTime); |
|
|
|