fix(relation):修复批量查询用户信息时返回空数据的问题
- 在请求页码超过总页数时正确返回空数据 - 添加DataFlowIssue注解以忽略潜在的数据流问题警告
This commit is contained in:
@@ -336,6 +336,7 @@ public class RelationServiceImpl implements RelationService {
|
||||
// 请求页码超过总页数
|
||||
if (pageNo > totalPage) {
|
||||
log.info("==> 批量查询用户信息,返回空数据");
|
||||
//noinspection DataFlowIssue
|
||||
return PageResponse.success(null, pageNo, total);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user