|
@@ -2,6 +2,8 @@ package com.ruoyi.web.controller.system;
|
|
|
|
|
|
import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
+
|
|
|
+import com.ruoyi.common.annotation.Anonymous;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
@@ -263,4 +265,13 @@ public class SysRoleController extends BaseController
|
|
|
ajax.put("depts", deptService.selectDeptTreeList(new SysDept()));
|
|
|
return ajax;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 根据角色权限字符查询该角色下是否存在真实用户
|
|
|
+ */
|
|
|
+ @Anonymous
|
|
|
+ @GetMapping("/selectUserByRoleKey/{roleKeys}")
|
|
|
+ public AjaxResult selectUserByRoleKey(@PathVariable("roleKeys") List<String> roleKeys){
|
|
|
+ return AjaxResult.success(roleService.selectUserByRoleKey(roleKeys));
|
|
|
+ }
|
|
|
}
|