|
@@ -395,13 +395,18 @@ public class TaskStartTimeListenerTa implements ListVariableListener<ApsSolution
|
|
|
minThGroupNames.add(bfgroupname);
|
|
|
// 获取前一炉合并工序的总重量
|
|
|
BigDecimal totalWeight = null;
|
|
|
- for (ProductionProcessesTa mergePro : mergePros) {
|
|
|
- if(totalWeight == null){
|
|
|
- totalWeight = mergePro.getTotalSinglerollweight();
|
|
|
- }else{
|
|
|
- totalWeight = totalWeight.add(mergePro.getTotalSinglerollweight());
|
|
|
+ if(mergePros != null && mergePros.size()>0){
|
|
|
+ for (ProductionProcessesTa mergePro : mergePros) {
|
|
|
+ if(totalWeight == null){
|
|
|
+ totalWeight = mergePro.getTotalSinglerollweight();
|
|
|
+ }else{
|
|
|
+ totalWeight = totalWeight.add(mergePro.getTotalSinglerollweight());
|
|
|
+ }
|
|
|
}
|
|
|
+ }else{
|
|
|
+ totalWeight = new BigDecimal("0");
|
|
|
}
|
|
|
+
|
|
|
totalWeight = totalWeight.add(process.getTotalSinglerollweight());
|
|
|
if(totalWeight.compareTo(equipmentTa.getEquipmentParameter().getEquipmentBearing())<=0 && process.getProcessType().equals(processbf.getProcessType())){
|
|
|
if(minThGroupNames.size() == 1){
|