|
|
@@ -63,15 +63,20 @@ public class RoleServiceImpl implements IRoleService { |
|
|
|
private OpRolePermissionService opRolePermissionService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* 2023-01-11 此处角色先不区分租户的概念,整个系统就3个角色,后期调整 |
|
|
|
* |
|
|
|
* @param roleQuery |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public JsonResult getRoleList(RoleQuery roleQuery) { |
|
|
|
IPage<Role> page = new Page<>(roleQuery.getPage(), roleQuery.getLimit()); |
|
|
|
// 查询条件 |
|
|
|
QueryWrapper<Role> queryWrapper = new QueryWrapper<>(); |
|
|
|
// 租户ID |
|
|
|
queryWrapper.eq("tenant_id", CurrentUserUtil.getTenantId()); |
|
|
|
// queryWrapper.eq("tenant_id", CurrentUserUtil.getTenantId()); |
|
|
|
// 角色名称 |
|
|
|
if (!StringUtils.isEmpty(roleQuery.getRoleName())) { |
|
|
|
queryWrapper.like("role_name", roleQuery.getRoleName()); |