| | |
| | | PageResult<AgvResult> page = agvService.pageRel(pageParam); |
| | | for (AgvResult result : page.getRecords()) { |
| | | result.sync(agvDetailService.selectByAgvId(result.getId()), codeService, taskService, agvService); |
| | | if (result.getUuid().equals("2")) { result.setOnline(true); } |
| | | } |
| | | return R.ok().add(page); |
| | | } |
| | |
| | | public R get(@PathVariable("id") Long id) { |
| | | Agv agv = agvService.getById(id); |
| | | if (null != agv) { |
| | | agv.setOnline(agvService.judgeOnline(agv.getId())); |
| | | if (agv.getUuid().equals("2")) { agv.setOnline(true); } |
| | | AgvDetail agvDetail = agvDetailService.selectByAgvId(agv.getId()); |
| | | if (null != agvDetail) { |
| | | agv.setAgvDetail(agvDetail); |