From 52af0489aaf4dc837c3611d7e0993f605be7b6ce Mon Sep 17 00:00:00 2001 From: gaoqr <13665037151@163.com> Date: Sat, 6 Jun 2026 14:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A6=85=E9=81=93bug#1638=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../imes/module/executor/service/plan/PlanServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/service/plan/PlanServiceImpl.java b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/service/plan/PlanServiceImpl.java index f0446c09d..85732453d 100644 --- a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/service/plan/PlanServiceImpl.java +++ b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/service/plan/PlanServiceImpl.java @@ -562,6 +562,11 @@ public class PlanServiceImpl implements PlanService { // 查询满足未排单条件的顶级订单id IPage rootOrderIdList = planItemMapper.selectRootOrderIdList(page, queryWrapperX); + long rootOrderIdListTotal = rootOrderIdList.getTotal(); + if (rootOrderIdListTotal == 0) { + return new PageResult<>(); + } + // 查询顶级列表的信息 IPage orderList = planItemMapper.selectOrderList(page, queryWrapperX, type, orderGoodsIds, rootOrderIdList.getRecords());