禅道bug#1611修复

This commit is contained in:
gaoqr
2026-06-02 18:43:58 +08:00
parent ffca4d2ea4
commit 351f293a07
@@ -119,7 +119,7 @@ public class OrderPlanApiImpl implements OrderPlanApi{
List<PlateDO> plateDOS = plateMapper.selectNoCutPlateByPlateId(Collections.singletonList(orderId), organId); List<PlateDO> plateDOS = plateMapper.selectNoCutPlateByPlateId(Collections.singletonList(orderId), organId);
if(CollUtil.isNotEmpty(plateDOS)){ if (CollUtil.isNotEmpty(plateDOS)) {
return CommonResult.success(false); return CommonResult.success(false);
} }
@@ -129,19 +129,19 @@ public class OrderPlanApiImpl implements OrderPlanApi{
.ne(PlateDO::getPlanId, 0L) .ne(PlateDO::getPlanId, 0L)
.select(PlateDO::getPlanId)); .select(PlateDO::getPlanId));
if(CollUtil.isNotEmpty(orderPlanPlateList)){ if (CollUtil.isNotEmpty(orderPlanPlateList)) {
List<Long> planIds = orderPlanPlateList.stream().map(PlateDO::getPlanId).distinct().toList(); List<Long> planIds = orderPlanPlateList.stream().map(PlateDO::getPlanId).distinct().toList();
List<Long> planDOS = planMapper.selectPlanList(planIds, organId); List<Long> planDOS = planMapper.selectPlanList(planIds, organId);
if(CollUtil.isEmpty(planDOS)){ if (CollUtil.isEmpty(planDOS)) {
return CommonResult.success(true); return CommonResult.success(true);
} }
} }
return CommonResult.success(false); return CommonResult.success(true);
} }