| | |
| | | public String getMapData(@PathVariable("lev") Integer lev) { |
| | | BasMap basMap = basMapService.getOne(new LambdaQueryWrapper<BasMap>().eq(BasMap::getLev, lev).eq(BasMap::getHostId, getHostId())); |
| | | //解析json地图数据 |
| | | List<ArrayList> arrayLists = JSON.parseArray(basMap.getData(), ArrayList.class); |
| | | List<ArrayList> arrayLists = new ArrayList<>(); |
| | | try{ |
| | | arrayLists = JSON.parseArray(basMap.getData(), ArrayList.class); |
| | | ArrayList<HashMap<String, Integer>> lineRows = new ArrayList<>(); |
| | | int dataRow = 0; |
| | | int dataRowCount = 0; |
| | |
| | | rowData.set(bay, jsonObject); |
| | | arrayLists.set(row, rowData); |
| | | } |
| | | } catch (Exception e){ |
| | | System.out.println("異常:異常原因:"+e.getMessage()); |
| | | } |
| | | |
| | | return JSONObject.toJSONString(arrayLists); |
| | | } |