|
|
|
|
@ -54,8 +54,10 @@ public class DaCatalogController extends BaseController
|
|
|
|
|
@GetMapping(value = "/userMenuTreeselect/{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();
|
|
|
|
|
ajax.put("checkedKeys", daCatalogService.selectCatalogIdsByUserId(userId));
|
|
|
|
|
ajax.put("catalogs", daCatalogService.buildCatalogTreeSelect(catalogs));
|
|
|
|
|
|