| | |
| | | import com.zy.acs.manager.manager.controller.param.MapParam; |
| | | import com.zy.acs.manager.manager.controller.result.MapAgvVo; |
| | | import com.zy.acs.manager.manager.controller.result.MapPointVo; |
| | | import com.zy.acs.manager.manager.controller.result.MapRouteVo; |
| | | import com.zy.acs.manager.manager.entity.Map; |
| | | import com.zy.acs.manager.manager.entity.*; |
| | | import com.zy.acs.manager.manager.enums.AgvStsType; |
| | |
| | | return R.ok().add(vo); |
| | | } |
| | | |
| | | @PostMapping("/route/list") |
| | | public R routeList(@RequestParam(required = false) Long zoneId) { |
| | | List<MapRouteVo> result = new ArrayList<>(); |
| | | List<Route> routeList = routeService.list(new LambdaQueryWrapper<Route>().eq(Route::getStatus, 1)); |
| | | for (Route route : routeList) { |
| | | MapRouteVo vo = new MapRouteVo(); |
| | | vo.setRouteId(route.getId()); |
| | | vo.setStartCode(route.getStartCode()); |
| | | vo.setStartCodeStr(route.getStartCode$()); |
| | | vo.setEndCode(route.getEndCode()); |
| | | vo.setEndCodeStr(route.getEndCode$()); |
| | | vo.setDirection(route.getDirection()); |
| | | result.add(vo); |
| | | } |
| | | return R.ok().add(result); |
| | | } |
| | | |
| | | |
| | | |
| | | |