|
@@ -139,17 +139,21 @@ public class RulesServiceImpl implements IRulesService {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ if(orderType == 17 || orderType == 18){ // 化工材料采购 现只考虑化工厂
|
|
|
+ return 16;
|
|
|
+ }
|
|
|
return 0;
|
|
|
}
|
|
|
- List<Integer> calculateList = queryTruckCalculate(map);
|
|
|
- //暂时不考虑优先级 随机进行取值
|
|
|
- int size = calculateList.size();
|
|
|
- if(size == 0){
|
|
|
- return 13; //没有查询到汽车衡 则使用备用秤
|
|
|
- }if(size == 1){
|
|
|
- return calculateList.get(0);
|
|
|
- }
|
|
|
- return calculateList.get(new Random().nextInt(size));
|
|
|
+// List<Integer> calculateList = queryTruckCalculate(map);
|
|
|
+// //暂时不考虑优先级 随机进行取值
|
|
|
+// int size = calculateList.size();
|
|
|
+// if(size == 0){
|
|
|
+// return 13; //没有查询到汽车衡 则使用备用秤
|
|
|
+// }if(size == 1){
|
|
|
+// return calculateList.get(0);
|
|
|
+// }
|
|
|
+// return calculateList.get(new Random().nextInt(size));
|
|
|
+ return 0;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -339,6 +343,9 @@ public class RulesServiceImpl implements IRulesService {
|
|
|
return 10;
|
|
|
}
|
|
|
}
|
|
|
+ if(orderType == 17 || orderType == 18){ // 化工材料采购 现只考虑化工厂
|
|
|
+ return 12;
|
|
|
+ }
|
|
|
return 0;
|
|
|
}
|
|
|
}
|