mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
未排订单 订单分组接口分页total异常修复
This commit is contained in:
+2
-3
@@ -584,7 +584,6 @@ public class PlanServiceImpl implements PlanService {
|
||||
IPage<OrderRespVOCopy> orderList = planItemMapper.selectOrderList(page, queryWrapperX, type, orderGoodsIds, rootOrderIdList.getRecords());
|
||||
|
||||
List<OrderRespVOCopy> mainOrderList = orderList.getRecords();
|
||||
long total = orderList.getTotal();
|
||||
|
||||
// 订单分组查询子单
|
||||
if (CollUtil.isNotEmpty(mainOrderList)) {
|
||||
@@ -602,10 +601,10 @@ public class PlanServiceImpl implements PlanService {
|
||||
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);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user