禅道bug#1638修复

This commit is contained in:
gaoqr
2026-06-06 14:17:24 +08:00
parent de359a3c6c
commit 52af0489aa
@@ -562,6 +562,11 @@ public class PlanServiceImpl implements PlanService {
// 查询满足未排单条件的顶级订单id
IPage<Long> rootOrderIdList = planItemMapper.selectRootOrderIdList(page, queryWrapperX);
long rootOrderIdListTotal = rootOrderIdList.getTotal();
if (rootOrderIdListTotal == 0) {
return new PageResult<>();
}
// 查询顶级列表的信息
IPage<OrderRespVOCopy> orderList = planItemMapper.selectOrderList(page, queryWrapperX, type, orderGoodsIds, rootOrderIdList.getRecords());