如果没查到用户也有可能是空结果集,不一定是null 。

Signed-off-by: 爱上猫的小鱼儿 <125358+jlynet_cn@user.noreply.gitee.com>
This commit is contained in:
爱上猫的小鱼儿 2025-01-28 17:57:32 +00:00 committed by Gitee
parent b1459824a6
commit ad94d16a75
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ public class TradeOrderQueryServiceImpl implements TradeOrderQueryService {
public PageResult<TradeOrderDO> getOrderPage(TradeOrderPageReqVO reqVO) {
// 根据用户查询条件构建用户编号列表
Set<Long> userIds = buildQueryConditionUserIds(reqVO);
if (userIds == null) { // 没查询到用户说明肯定也没他的订单
if (userIds == null || userIds.isEmpty()) { // 没查询到用户说明肯定也没他的订单
return PageResult.empty();
}
// 分页查询