| | |
| | | private RedisUtil redisUtil; |
| | | @Autowired |
| | | private LocMastService locMastService; |
| | | @Autowired |
| | | private BasMapService basMapService; |
| | | |
| | | @PostMapping("/system/running/status") |
| | | @ManagerAuth(memo = "系统运行状态") |
| | |
| | | @GetMapping("/map/{lev}/auth") |
| | | public R getLocMap(@PathVariable Integer lev) { |
| | | Object object = redisUtil.get(RedisKeyType.LOC_MAP_BASE.key); |
| | | if (object == null) { |
| | | return R.error("地图未初始化"); |
| | | List<List<HashMap<String, Object>>> mapNodeList = null; |
| | | if (object != null) { |
| | | mapNodeList = (List<List<HashMap<String, Object>>>) object; |
| | | } |
| | | List<List<HashMap<String, Object>>> mapNodeList = (List<List<HashMap<String, Object>>>) object; |
| | | List<LocMast> locMastList = locMastService.selectLocByLev(lev); |
| | | for (LocMast locMast : locMastList) { |
| | | String[] locType = locMast.getLocType().split("-"); |