|
@@ -74,6 +74,8 @@ public class ApsServiceImpl implements ApsService {
|
|
|
private ApsMergeFurnaceService apsMergeFurnaceService;
|
|
|
@Autowired
|
|
|
private ApsProductionOrderService apsProductionOrderService;
|
|
|
+ @Autowired
|
|
|
+ private ApsAnnealingDifferenceService apsAnnealingDifferenceService;
|
|
|
|
|
|
/**
|
|
|
* Aps排程
|
|
@@ -644,6 +646,8 @@ public class ApsServiceImpl implements ApsService {
|
|
|
if(productionScheduleVo.getStandingyield() == null){
|
|
|
productionScheduleVo.setStandingyield(60);
|
|
|
}
|
|
|
+ productionScheduleVo.setMiddifference(apsScheduleConfig.getMiddifference());
|
|
|
+ productionScheduleVo.setFurnacedifference(apsScheduleConfig.getFurnacedifference());
|
|
|
} else {
|
|
|
throw new CustomException("排程参数缺失");
|
|
|
}
|
|
@@ -656,6 +660,9 @@ public class ApsServiceImpl implements ApsService {
|
|
|
// 小卷退火兼容
|
|
|
List<ApsMergeFurnaceDo> mergeFurnaceDos = apsMergeFurnaceService.list();
|
|
|
productionScheduleVo.setMergeFurnaces(mergeFurnaceDos);
|
|
|
+ // 退火合并厚差配置数据
|
|
|
+ List<ApsAnnealingDifferenceDo> apsAnnealingDifferenceDos = apsAnnealingDifferenceService.list();
|
|
|
+ productionScheduleVo.setApsAnnealingDifferences(apsAnnealingDifferenceDos);
|
|
|
return productionScheduleVo;
|
|
|
}
|
|
|
|
|
@@ -844,6 +851,9 @@ public class ApsServiceImpl implements ApsService {
|
|
|
String lbtj = null;
|
|
|
for (int i = 0; i < lastpros.size(); i++) {
|
|
|
ApsProcessOperationDo apo = lastopsMap.get(lastpros.get(i).getProcessid());
|
|
|
+ if(apo == null){
|
|
|
+ int aaa = 1;
|
|
|
+ }
|
|
|
String thislbtj = apo.getMetal() + "^_^" + apo.getProducttype() + "^_^" + apo.getProwidth();
|
|
|
if(hasLbs == null){
|
|
|
hasLbs = apo.getSinglerollweight();
|