diff --git a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/api/plan/OrderPlanApiImpl.java b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/api/plan/OrderPlanApiImpl.java index d5fbadc23..dd3bcd972 100644 --- a/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/api/plan/OrderPlanApiImpl.java +++ b/cf-module-prod-executor/cf-module-prod-executor-biz/src/main/java/com/cf/imes/module/executor/api/plan/OrderPlanApiImpl.java @@ -119,7 +119,7 @@ public class OrderPlanApiImpl implements OrderPlanApi{ List plateDOS = plateMapper.selectNoCutPlateByPlateId(Collections.singletonList(orderId), organId); - if(CollUtil.isNotEmpty(plateDOS)){ + if (CollUtil.isNotEmpty(plateDOS)) { return CommonResult.success(false); } @@ -129,19 +129,19 @@ public class OrderPlanApiImpl implements OrderPlanApi{ .ne(PlateDO::getPlanId, 0L) .select(PlateDO::getPlanId)); - if(CollUtil.isNotEmpty(orderPlanPlateList)){ + if (CollUtil.isNotEmpty(orderPlanPlateList)) { List planIds = orderPlanPlateList.stream().map(PlateDO::getPlanId).distinct().toList(); List planDOS = planMapper.selectPlanList(planIds, organId); - if(CollUtil.isEmpty(planDOS)){ + if (CollUtil.isEmpty(planDOS)) { return CommonResult.success(true); } } - return CommonResult.success(false); + return CommonResult.success(true); }