Commit 1639a4e7 authored by co_dengxiongwen's avatar co_dengxiongwen

tj

parent dbbae009
...@@ -493,6 +493,7 @@ public class LiResourceController extends AbstractController { ...@@ -493,6 +493,7 @@ public class LiResourceController extends AbstractController {
List<Map<String, Object>> nodes = new ArrayList<>(); List<Map<String, Object>> nodes = new ArrayList<>();
for (LiStationMap liStationMap : mapList) { for (LiStationMap liStationMap : mapList) {
if(liStationMap.getStationId().equals(liStation.getId())){
Map<String, Object> mapStationMap = JSONObject.parseObject(JSONObject.toJSONString(liStationMap), Map.class); Map<String, Object> mapStationMap = JSONObject.parseObject(JSONObject.toJSONString(liStationMap), Map.class);
mapStationMap.put("key", UUID.randomUUID()); mapStationMap.put("key", UUID.randomUUID());
mapStationMap.put("level", 4); mapStationMap.put("level", 4);
...@@ -539,6 +540,7 @@ public class LiResourceController extends AbstractController { ...@@ -539,6 +540,7 @@ public class LiResourceController extends AbstractController {
nodes.add(mapStationMap); nodes.add(mapStationMap);
} }
} }
}
mapStation.put("children", nodes); mapStation.put("children", nodes);
childrenRoot.add(mapStation); childrenRoot.add(mapStation);
}); });
......
...@@ -40,7 +40,7 @@ public interface LiStationMapDao extends MyBaseMapper<LiStationMap> { ...@@ -40,7 +40,7 @@ public interface LiStationMapDao extends MyBaseMapper<LiStationMap> {
* @param stationId * @param stationId
* @return * @return
*/ */
List<LiStationMap> getListByStationId(String stationId); List<LiStationMap> getListByStationId(@Param("stationId")String stationId);
List<Map<String, Object>> queryListByParam(LiStationMapModel model); List<Map<String, Object>> queryListByParam(LiStationMapModel model);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment