新增排单查询Bug修改

This commit is contained in:
liuzhaotian
2024-06-27 19:42:33 +08:00
parent 32961ac069
commit a1639989f1
@@ -356,6 +356,10 @@ public class PlanServiceImpl implements PlanService {
IPage<OrderRespVOCopy> orderRespVOCopies = orderMapper.selectOrderPage(page, queryWrapperX);
if (CollectionUtil.isEmpty(orderRespVOCopies.getRecords())) {
return new PageResult<>();
}
List<OrderRespVOCopy> records = orderRespVOCopies.getRecords();
List<Long> orderIds = records.stream().map(m -> m.getOrderId()).collect(Collectors.toList());
@@ -383,9 +387,7 @@ public class PlanServiceImpl implements PlanService {
orderRespVOCopies.setTotal(filteredRecords.size());
if (CollectionUtil.isEmpty(records)) {
return new PageResult<>();
}
return new PageResult<>(orderRespVOCopies.getRecords(), orderRespVOCopies.getTotal());