| | |
| | | public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements TaskService { |
| | | |
| | | @Autowired |
| | | private BusService busService; |
| | | @Autowired |
| | | private CodeService codeService; |
| | | @Autowired |
| | | private LocService locService; |
| | |
| | | if (!this.updateById(task)) { |
| | | throw new CoolException(BaseRes.ERROR); |
| | | } |
| | | busService.checkoutComplete(task.getBusId()); |
| | | return Boolean.TRUE; |
| | | } |
| | | |
| | |
| | | if (!this.updateById(task)) { |
| | | throw new CoolException(BaseRes.ERROR); |
| | | } |
| | | busService.checkoutComplete(task.getBusId()); |
| | | return Boolean.TRUE; |
| | | } |
| | | |
| | |
| | | if (null == codeId) { |
| | | return null; |
| | | } |
| | | return laneService.search(codeService.getById(codeId).getData()); |
| | | return laneService.search(codeService.getCacheById(codeId).getData()); |
| | | } |
| | | |
| | | @Override |
| | |
| | | if (null == codeId) { |
| | | return null; |
| | | } |
| | | return laneService.search(codeService.getById(codeId).getData()); |
| | | return laneService.search(codeService.getCacheById(codeId).getData()); |
| | | } |
| | | |
| | | @Override |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<Task> findRunningTasksByAgv(Long agvId) { |
| | | public List<Task> findTransportTasksByAgv(Long agvId) { |
| | | if (null == agvId) { |
| | | return new ArrayList<>(); |
| | | } |