mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-13 21:32:07 +08:00
禅道bug#1611修复
This commit is contained in:
+4
-4
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user