|
|
@@ -249,9 +249,8 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
@Override |
|
|
|
public JsonResult findUserList(UserQuery query) { |
|
|
|
|
|
|
|
if (ObjectUtil.isNull(query.getPage()) || ObjectUtil.isNull(query.getLimit())) { |
|
|
|
return JsonResult.error("分页参数不能为空"); |
|
|
|
} |
|
|
|
//分页参数校验 |
|
|
|
query.checkParam(); |
|
|
|
//开启分页 |
|
|
|
IPage<UserPo> page = new Page<>(query.getPage(), query.getLimit()); |
|
|
|
IPage<UserVo> pageData = clientUserMapper.selectByTenantIdAndPage(query, page); |
|
|
@@ -357,9 +356,8 @@ public class ClientUserServiceImpl implements ClientUserSevice { |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public JsonResult findTenants(TenantQuery query) { |
|
|
|
if (ObjectUtil.isNull(query.getPage()) || ObjectUtil.isNull(query.getLimit())) { |
|
|
|
return JsonResult.error("分页参数不能为空"); |
|
|
|
} |
|
|
|
//分页参数校验 |
|
|
|
query.checkParam(); |
|
|
|
//开启分页 |
|
|
|
IPage<TenantVo> page = new Page<>(query.getPage(), query.getLimit()); |
|
|
|
IPage<TenantPo> pageData = tenantMapper.findList(page, query); |