master
hansha 2 years ago
parent 3368d4daf5
commit 6d6acd8f67

@ -54,8 +54,10 @@ public class DaCatalogController extends BaseController
@GetMapping(value = "/userMenuTreeselect/{userId}") @GetMapping(value = "/userMenuTreeselect/{userId}")
public AjaxResult roleMenuTreeselect(@PathVariable("userId") Long userId) public AjaxResult roleMenuTreeselect(@PathVariable("userId") Long userId)
{ {
//根据用户查询对应列表 //查询所有目录列表
List<DaCatalog> catalogs = daCatalogService.selectDaCatalogList(new DaCatalog(), getLoginUser()); List<DaCatalog> catalogs = daCatalogService.selectAllDaCatalogList(new DaCatalog());
//查询当前用户权限内的目录
// List<DaCatalog> catalogs = daCatalogService.selectDaCatalogList(new DaCatalog(), getLoginUser());
AjaxResult ajax = AjaxResult.success(); AjaxResult ajax = AjaxResult.success();
ajax.put("checkedKeys", daCatalogService.selectCatalogIdsByUserId(userId)); ajax.put("checkedKeys", daCatalogService.selectCatalogIdsByUserId(userId));
ajax.put("catalogs", daCatalogService.buildCatalogTreeSelect(catalogs)); ajax.put("catalogs", daCatalogService.buildCatalogTreeSelect(catalogs));

Loading…
Cancel
Save