| | |
| | | |
| | | import java.util.List; |
| | | |
| | | import static com.ruoyi.common.core.web.domain.AjaxResult.success; |
| | | |
| | | /** |
| | | * @ClassName StaffMenuController |
| | | * @Description TODO |
| | |
| | | { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | List<SysMenu> menus = menuService.selectStaffMenuList(userId); |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | AjaxResult ajax = success(); |
| | | ajax.put("checkedKeys", menuService.selectStaffMenuListByDeptId(deptId)); |
| | | ajax.put("menus", menuService.buildMenuTreeSelect(menus)); |
| | | return ajax; |
| | |
| | | public AjaxResult deptUserStaffMenuTreeselect(@PathVariable("deptUserId") Long deptUserId) |
| | | { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | List<SysMenu> menus = menuService.selectStaffMenuList(userId); |
| | | AjaxResult ajax = AjaxResult.success(); |
| | | List<SysMenu> menus = menuService.selectStaffDeptMenuList(deptUserId); |
| | | AjaxResult ajax = success(); |
| | | ajax.put("checkedKeys", menuService.selectStaffMenuListByDeptUserId(deptUserId)); |
| | | ajax.put("menus", menuService.buildMenuTreeSelect(menus)); |
| | | return ajax; |
| | | } |
| | | |
| | | /** |
| | | * 获取菜单下拉树列表 |
| | | */ |
| | | @GetMapping("/treedeptselect") |
| | | public AjaxResult treedeptselect(SysMenu menu) |
| | | { |
| | | Long userId = SecurityUtils.getUserId(); |
| | | List<SysMenu> menus = menuService.selectStaffMenuList(menu, userId); |
| | | return success(menuService.buildMenuTreeSelect(menus)); |
| | | } |
| | | } |