|
|
|
|
@ -431,10 +431,8 @@ public class TaskExecuteRecordServiceImpl extends BaseServiceImpl<TaskExecuteRec |
|
|
|
|
boolean update = stationService.updateById(startStation); |
|
|
|
|
if (update) { |
|
|
|
|
log.info("站点释放成功:{}", startStation.getStationCode()); |
|
|
|
|
return true; |
|
|
|
|
} else { |
|
|
|
|
log.error("站点释放失败:{}", startStation.getStationCode()); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -443,11 +441,9 @@ public class TaskExecuteRecordServiceImpl extends BaseServiceImpl<TaskExecuteRec |
|
|
|
|
endStation.setStationStatus(Station.STATUS_OCCUPIED); |
|
|
|
|
boolean update = stationService.updateById(endStation); |
|
|
|
|
if (update) { |
|
|
|
|
log.info("站点释放成功:{}", endStation.getStationCode()); |
|
|
|
|
return true; |
|
|
|
|
log.info("站点绑定成功:{}", endStation.getStationCode()); |
|
|
|
|
} else { |
|
|
|
|
log.error("站点释放失败:{}", endStation.getStationCode()); |
|
|
|
|
return false; |
|
|
|
|
log.error("站点绑定失败:{}", endStation.getStationCode()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -470,7 +466,6 @@ public class TaskExecuteRecordServiceImpl extends BaseServiceImpl<TaskExecuteRec |
|
|
|
|
log.error("Task状态修改失败,taskCode:{}", taskCode); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|