|
@@ -636,7 +636,7 @@ public class ApsConstraintProvider implements ConstraintProvider {
|
|
|
|
|
|
if(hasStartTimeProcess != null && hasStartTimeProcess.size()>1){
|
|
|
// 安装开始时间排序
|
|
|
- Collections.sort(hasStartTimeProcess, Comparator.comparing(ProductionProcesses::getStartTime));
|
|
|
+ Collections.sort(hasStartTimeProcess, Comparator.comparing(ProductionProcesses::getSeriSort));
|
|
|
// 获取设备已排程好的最后一个作业,计算连续加工
|
|
|
if(equipment.getLastProcessType() != null && equipment.getLastSeriesProduceMark() != null){
|
|
|
ProductionProcesses pp = new ProductionProcesses();
|
|
@@ -701,7 +701,7 @@ public class ApsConstraintProvider implements ConstraintProvider {
|
|
|
}
|
|
|
}
|
|
|
// 按照开始时间排序
|
|
|
- Collections.sort(hasStartTimeProcess, Comparator.comparing(ProductionProcesses::getStartTime));
|
|
|
+ Collections.sort(hasStartTimeProcess, Comparator.comparing(ProductionProcesses::getSeriSort));
|
|
|
// 获取设备已排程好的最后一个作业,计算连续加工
|
|
|
if(equipment.getLastProcessType() != null && equipment.getLastSeriesProduceMark() != null){
|
|
|
ProductionProcesses pp = new ProductionProcesses();
|
|
@@ -738,6 +738,9 @@ public class ApsConstraintProvider implements ConstraintProvider {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ /*if("0001be252874536843730b100020".equals(equipmentId)){
|
|
|
+ System.out.println("******得分:"+b);
|
|
|
+ }*/
|
|
|
if(b>0){
|
|
|
return b;
|
|
|
}
|