未排订单 订单分组接口分页total异常修复

This commit is contained in:
gaoqr
2026-06-09 11:06:17 +08:00
parent 698bd77e1c
commit 98f553ca50
@@ -584,7 +584,6 @@ public class PlanServiceImpl implements PlanService {
IPage<OrderRespVOCopy> orderList = planItemMapper.selectOrderList(page, queryWrapperX, type, orderGoodsIds, rootOrderIdList.getRecords()); IPage<OrderRespVOCopy> orderList = planItemMapper.selectOrderList(page, queryWrapperX, type, orderGoodsIds, rootOrderIdList.getRecords());
List<OrderRespVOCopy> mainOrderList = orderList.getRecords(); List<OrderRespVOCopy> mainOrderList = orderList.getRecords();
long total = orderList.getTotal();
// 订单分组查询子单 // 订单分组查询子单
if (CollUtil.isNotEmpty(mainOrderList)) { if (CollUtil.isNotEmpty(mainOrderList)) {
@@ -602,10 +601,10 @@ public class PlanServiceImpl implements PlanService {
order.setChild(childMap.getOrDefault(order.getOrderId(), null)); order.setChild(childMap.getOrDefault(order.getOrderId(), null));
} }
} }
return new PageResult<>(mainOrderList, total); return new PageResult<>(mainOrderList, rootOrderIdListTotal);
} }
return new PageResult<>(mainOrderList, total); return new PageResult<>(mainOrderList, rootOrderIdListTotal);
} }