用户管理-专家管理07

dev
喻忠伟 5 months ago
parent 72d4e222da
commit a07da15e97
  1. 23
      jeecg-boot-master/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysRoleController.java
  2. 27
      jeecg-boot-master/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysUserController.java

@ -267,6 +267,29 @@ public class SysRoleController {
return result; return result;
} }
/**
* 查询系统角色排除总管理
*
* @return
*/
//@RequiresPermissions("system:role:queryallNoByTenant")
@RequestMapping(value = "/queryallExcludeByTenant", method = RequestMethod.GET)
public Result<List<SysRole>> queryallExcludeByTenant() {
Result<List<SysRole>> result = new Result<>();
LambdaQueryWrapper<SysRole> query = new LambdaQueryWrapper<SysRole>()
.ne(SysRole::getRoleCode, "admin") // 排除 roleCode 为 "admin"
.ne(SysRole::getRoleCode, "user"); // 排除 roleCode 为 "user"
List<SysRole> list = sysRoleService.list(query);
if(list==null||list.size()<=0) {
result.error500("未找到角色信息");
}else {
result.setResult(list);
result.setSuccess(true);
}
return result;
}
/** /**
* 校验角色编码唯一 * 校验角色编码唯一
*/ */

@ -152,6 +152,33 @@ public class SysUserController {
return sysUserService.queryPageList(req, queryWrapper, pageSize, pageNo); return sysUserService.queryPageList(req, queryWrapper, pageSize, pageNo);
} }
/**
* 获取系统用户数据查询全部用户不做租户隔离
*
* @param user
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@RequiresPermissions("system:user:listAll")
@RequestMapping(value = "/listZjAll", method = RequestMethod.GET)
public Result<IPage<SysUser>> queryZjAllPageList(SysUser user, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, HttpServletRequest req) {
QueryWrapper<SysUser> queryWrapper = QueryGenerator.initQueryWrapper(user, req.getParameterMap());
Result<IPage<SysUser>> result = new Result<IPage<SysUser>>();
Page<SysUser> page = new Page<SysUser>(pageNo, pageSize);
// String roleId = req.getParameter("roleId");
String roleId = "1731948288626339841";
String username = req.getParameter("username");
IPage<SysUser> pageList = sysUserService.getUserByRoleId(page,roleId,username);
result.setSuccess(true);
result.setResult(pageList);
return result;
}
/** /**
* 获取系统用户数据查询全部用户不做租户隔离 * 获取系统用户数据查询全部用户不做租户隔离
*这个是用于专家学生组委会查看自己的信息 *这个是用于专家学生组委会查看自己的信息

Loading…
Cancel
Save