|
@@ -1942,7 +1942,7 @@ public class ApsServiceImpl implements ApsService {
|
|
|
List<ProductionProcesses> otherThproces = new ArrayList<>();
|
|
|
// 铸轧提前排序
|
|
|
int processNum1 = apsSolutionZz.getProcessesList().size();
|
|
|
- int runPlanSeconds1 = (processNum1)*60;
|
|
|
+ int runPlanSeconds1 = (processNum1)*120;
|
|
|
// CPU核数
|
|
|
String cores = Runtime.getRuntime().availableProcessors() + "";
|
|
|
SolverFactory<ApsSolution> solverFactory1 = SolverFactory.create(new SolverConfig()
|
|
@@ -1986,6 +1986,9 @@ public class ApsServiceImpl implements ApsService {
|
|
|
// 重量
|
|
|
BigDecimal singlerollweight1 = v1.getSinglerollweight();
|
|
|
BigDecimal singlerollweight2 = v2.getSinglerollweight();
|
|
|
+ // 客户订单ID
|
|
|
+ String customerOrderId1 = v1.getProduceOrder().get(0).getCustomerOrderId();
|
|
|
+ String customerOrderId2 = v2.getProduceOrder().get(0).getCustomerOrderId();
|
|
|
|
|
|
int a = 0;
|
|
|
// 合金
|
|
@@ -1994,27 +1997,32 @@ public class ApsServiceImpl implements ApsService {
|
|
|
if(producttype1 == null || producttype2 == null || producttype1.compareTo(producttype2) == 0){
|
|
|
// 宽度
|
|
|
if(prowidth1.compareTo(prowidth2) == 0){
|
|
|
- // 厚度
|
|
|
- if(thickness1.compareTo(thickness2) == 0){
|
|
|
- // 合金状态
|
|
|
- if(alloystatus1 == null || alloystatus2 == null || alloystatus1.compareTo(alloystatus2) == 0){
|
|
|
- // 重量
|
|
|
- if(singlerollweight1.compareTo(singlerollweight2) == 0){
|
|
|
- a = 0;
|
|
|
- }else if(singlerollweight1.compareTo(singlerollweight2) > 0){
|
|
|
+ // 按照订单排序
|
|
|
+ if(customerOrderId1.compareTo(customerOrderId2) == 0){
|
|
|
+ // 厚度
|
|
|
+ if(thickness1.compareTo(thickness2) == 0){
|
|
|
+ // 合金状态
|
|
|
+ if(alloystatus1 == null || alloystatus2 == null || alloystatus1.compareTo(alloystatus2) == 0){
|
|
|
+ // 重量
|
|
|
+ if(singlerollweight1.compareTo(singlerollweight2) == 0){
|
|
|
+ a = 0;
|
|
|
+ }else if(singlerollweight1.compareTo(singlerollweight2) > 0){
|
|
|
+ a = -1;
|
|
|
+ }else{
|
|
|
+ a = 1;
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ a = alloystatus1.compareTo(alloystatus2);
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ if(thickness1.compareTo(thickness2) > 0){
|
|
|
a = -1;
|
|
|
}else{
|
|
|
a = 1;
|
|
|
}
|
|
|
- }else{
|
|
|
- a = alloystatus1.compareTo(alloystatus2);
|
|
|
}
|
|
|
}else{
|
|
|
- if(thickness1.compareTo(thickness2) > 0){
|
|
|
- a = -1;
|
|
|
- }else{
|
|
|
- a = 1;
|
|
|
- }
|
|
|
+ a = customerOrderId1.compareTo(customerOrderId2);
|
|
|
}
|
|
|
}else{
|
|
|
if(prowidth1.compareTo(prowidth2) > 0){
|