fix(relation):修复批量查询用户信息时返回空数据的问题

- 在请求页码超过总页数时正确返回空数据
- 添加DataFlowIssue注解以忽略潜在的数据流问题警告
This commit is contained in:
2025-10-14 23:32:01 +08:00
parent aca7c657fa
commit 5e4f9b1203

View File

@@ -336,6 +336,7 @@ public class RelationServiceImpl implements RelationService {
// 请求页码超过总页数 // 请求页码超过总页数
if (pageNo > totalPage) { if (pageNo > totalPage) {
log.info("==> 批量查询用户信息,返回空数据"); log.info("==> 批量查询用户信息,返回空数据");
//noinspection DataFlowIssue
return PageResponse.success(null, pageNo, total); return PageResponse.success(null, pageNo, total);
} }