1218 如果没查到用户也有可能是空结果集,不一定是null
This commit is contained in:
parent
949fa22509
commit
d75d71d7d0
|
@ -91,7 +91,7 @@ public class TradeOrderQueryServiceImpl implements TradeOrderQueryService {
|
|||
public PageResult<TradeOrderDO> getOrderPage(TradeOrderPageReqVO reqVO) {
|
||||
// 根据用户查询条件构建用户编号列表
|
||||
Set<Long> userIds = buildQueryConditionUserIds(reqVO);
|
||||
if (userIds == null) { // 没查询到用户,说明肯定也没他的订单
|
||||
if (CollUtil.isEmpty(userIds)) { // 没查询到用户,说明肯定也没他的订单
|
||||
return PageResult.empty();
|
||||
}
|
||||
// 分页查询
|
||||
|
@ -122,7 +122,7 @@ public class TradeOrderQueryServiceImpl implements TradeOrderQueryService {
|
|||
public TradeOrderSummaryRespVO getOrderSummary(TradeOrderPageReqVO reqVO) {
|
||||
// 根据用户查询条件构建用户编号列表
|
||||
Set<Long> userIds = buildQueryConditionUserIds(reqVO);
|
||||
if (userIds == null) { // 没查询到用户,说明肯定也没他的订单
|
||||
if (CollUtil.isEmpty(userIds)) { // 没查询到用户,说明肯定也没他的订单
|
||||
return new TradeOrderSummaryRespVO();
|
||||
}
|
||||
// 查询每个售后状态对应的数量、金额
|
||||
|
|
Loading…
Reference in New Issue