Commit 1639a4e7 authored by co_dengxiongwen's avatar co_dengxiongwen

tj

parent dbbae009
......@@ -493,6 +493,7 @@ public class LiResourceController extends AbstractController {
List<Map<String, Object>> nodes = new ArrayList<>();
for (LiStationMap liStationMap : mapList) {
if(liStationMap.getStationId().equals(liStation.getId())){
Map<String, Object> mapStationMap = JSONObject.parseObject(JSONObject.toJSONString(liStationMap), Map.class);
mapStationMap.put("key", UUID.randomUUID());
mapStationMap.put("level", 4);
......@@ -539,6 +540,7 @@ public class LiResourceController extends AbstractController {
nodes.add(mapStationMap);
}
}
}
mapStation.put("children", nodes);
childrenRoot.add(mapStation);
});
......
......@@ -40,7 +40,7 @@ public interface LiStationMapDao extends MyBaseMapper<LiStationMap> {
* @param stationId
* @return
*/
List<LiStationMap> getListByStationId(String stationId);
List<LiStationMap> getListByStationId(@Param("stationId")String stationId);
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