Commit ac7457e8 by guojuxing

如果分组查询没有数据,则返回空

parent 7bb64ddb
......@@ -329,6 +329,10 @@ public class UserApiServiceImpl implements UserApiService {
}
params.setUserIdList(userIdList);
}
//如果是空的,则返回空
if (CollectionUtils.isNotEmpty(params.getUserIdList())) {
return ServiceResponse.success(new Page<>());
}
}
com.github.pagehelper.Page page = userService.pageUser(params);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment