| | |
| | | if (!taskService.updateById(task)) { |
| | | throw new CoolException("任务状态更新失败"); |
| | | } |
| | | if (task.getTaskType().equals(TaskType.TASK_TYPE_OUT.type)) { |
| | | BasStation basStation = basStationService.getOne(new LambdaQueryWrapper<BasStation>() |
| | | .eq(BasStation::getBarcode, param.getContainerNo())); |
| | | if (!Cools.isEmpty(basStation)) { |
| | | basStation.setUseStatus(LocStsType.LOC_STS_TYPE_D.type); |
| | | basStation.setUpdateTime(new Date()); |
| | | if (!basStationService.updateById(basStation)){ |
| | | throw new CoolException("站点状态更新失败"); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | return R.ok(); |