未排订单 订单分页接口翻页数据错误修复

This commit is contained in:
gaoqr
2026-06-09 18:17:38 +08:00
parent 1bfb11845b
commit 8f0f0fa3d6
@@ -586,8 +586,9 @@ public class PlanServiceImpl implements PlanService {
return new PageResult<>();
}
// 查询顶级列表的信息
IPage<OrderRespVOCopy> orderList = planItemMapper.selectOrderList(page, queryWrapperX, type, orderGoodsIds, rootOrderIdList.getRecords());
// 查询顶级列表的信息,分页在顶级查询做,此处查询全部信息避免分页互相影响
PageDTO<OrderRespVOCopy> secondPage = new PageDTO<>(pageReqVO.getPageNo(), PAGE_SIZE_NONE);
IPage<OrderRespVOCopy> orderList = planItemMapper.selectOrderList(secondPage, queryWrapperX, type, orderGoodsIds, rootOrderIdList.getRecords());
List<OrderRespVOCopy> mainOrderList = orderList.getRecords();