|
|
|
@ -651,11 +651,12 @@ public class WorkOrderServiceImpl extends BaseServiceImpl<WorkOrderMapper, WorkO |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (CollectionUtils.isEmpty(equipResourceList)) { |
|
|
|
if (CollectionUtils.isEmpty(equipResourceList)) { |
|
|
|
order.setStatus(YieldOrderEnum.STATUS_APS.getCode()); |
|
|
|
errorInfo.append("作业中心:" + workCenterMap.get(craft.getWorkCenterId()) + ",工艺能力:" + craftAbilityMap.get(craft.getCaId()) + ",工序:" + processMap.get(craft.getPpsId()) + ",设备资源已不足"); |
|
|
|
order.setErrorInfo("作业中心:" + workCenterMap.get(craft.getWorkCenterId()) + ",工艺能力:" + craftAbilityMap.get(craft.getCaId()) + ",工序:" + processMap.get(craft.getPpsId()) + ",设备资源已不足"); |
|
|
|
// order.setStatus(YieldOrderEnum.STATUS_APS.getCode());
|
|
|
|
yieldOrderService.updateById(order); |
|
|
|
// order.setErrorInfo("作业中心:" + workCenterMap.get(craft.getWorkCenterId()) + ",工艺能力:" + craftAbilityMap.get(craft.getCaId()) + ",工序:" + processMap.get(craft.getPpsId()) + ",设备资源已不足");
|
|
|
|
|
|
|
|
// yieldOrderService.updateById(order);
|
|
|
|
isSchecuding = false; |
|
|
|
isSchecuding = false; |
|
|
|
break; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
//设备资源按照时间段分组并按时间排序,然后再每个组内按照剩余产能倒序排序
|
|
|
|
//设备资源按照时间段分组并按时间排序,然后再每个组内按照剩余产能倒序排序
|
|
|
|
Map<LocalDateTime, List<EquipResourceEntity>> equipResourceMap = equipResourceList.stream() |
|
|
|
Map<LocalDateTime, List<EquipResourceEntity>> equipResourceMap = equipResourceList.stream() |
|
|
|
|