菜单功能更新
This commit is contained in:
@@ -279,8 +279,12 @@ public class MenuServiceImpl implements MenuService {
|
||||
}
|
||||
return menus;
|
||||
}
|
||||
MenuDto dto = this.findById(menuDto.getPid());
|
||||
menus.addAll((Collection<? extends MenuDto>) dto);
|
||||
//pid 不为null
|
||||
JSONArray arr = menuTab.query("pid = '"+menuDto.getPid()+"'").getResultJSONArray(0);
|
||||
for (int i = 0; i < arr.size(); i++) {
|
||||
JSONObject json = arr.getJSONObject(i);
|
||||
menus.add(this.menuJsonToMenuDto(json));
|
||||
}
|
||||
return getSuperior(findById(menuDto.getPid()), menus);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user