|
|
@ -48,8 +48,6 @@ public class SubController {
|
|
|
|
private static List<GGrpCalRslt> gltGGrpCalRslt = new CopyOnWriteArrayList<>();
|
|
|
|
private static List<GGrpCalRslt> gltGGrpCalRslt = new CopyOnWriteArrayList<>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static int intOrdNum = 0;
|
|
|
|
private static int intOrdNum = 0;
|
|
|
|
|
|
|
|
|
|
|
|
private static int intGrpNum = 0;
|
|
|
|
private static int intGrpNum = 0;
|
|
|
@ -154,7 +152,6 @@ public class SubController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
@ -185,28 +182,28 @@ public class SubController {
|
|
|
|
//1板坯数据
|
|
|
|
//1板坯数据
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistSlab = subService.getSlabInfo();
|
|
|
|
plistSlab = subService.getSlabInfo();
|
|
|
|
logger.info("******1板坯数据获取完毕*******");
|
|
|
|
// logger.info("******1板坯数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//2订单数据
|
|
|
|
//2订单数据
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistOrder = subService.getOrderInfo();
|
|
|
|
plistOrder = subService.getOrderInfo();
|
|
|
|
logger.info("******2订单数据获取完毕*******");
|
|
|
|
// logger.info("******2订单数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//3生产合同产品属性表
|
|
|
|
//3生产合同产品属性表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmProContProdAttrDO = subService.getPmProCountProdAttr();
|
|
|
|
plistPmProContProdAttrDO = subService.getPmProCountProdAttr();
|
|
|
|
logger.info("******3生产合同产品属性表数据获取完毕*******");
|
|
|
|
// logger.info("******3生产合同产品属性表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//4合同产线工艺参数表
|
|
|
|
//4合同产线工艺参数表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmContMscTechDO = subService.getPmContMscTech();
|
|
|
|
plistPmContMscTechDO = subService.getPmContMscTech();
|
|
|
|
logger.info("******4合同产线工艺参数表数据获取完毕*******");
|
|
|
|
// logger.info("******4合同产线工艺参数表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -214,133 +211,133 @@ public class SubController {
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
// plistPmProContProdAttrDO = subService.getPmProCountProdAttr();
|
|
|
|
// plistPmProContProdAttrDO = subService.getPmProCountProdAttr();
|
|
|
|
Thread.sleep(10000); // 休眠10秒钟
|
|
|
|
Thread.sleep(10000); // 休眠10秒钟
|
|
|
|
logger.info("******5生产合同产品属性表数据获取完毕*******");
|
|
|
|
// logger.info("******5生产合同产品属性表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//6组板设计规则集
|
|
|
|
//6组板设计规则集
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmPdRuleSetDO = subService.getPmPdRuleSet();
|
|
|
|
plistPmPdRuleSetDO = subService.getPmPdRuleSet();
|
|
|
|
logger.info("******6组板设计规则集数据获取完毕*******");
|
|
|
|
// logger.info("******6组板设计规则集数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//7组板设计规则集
|
|
|
|
//7组板设计规则集
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmPdRuleItemDO = subService.getPmPdRuleItem();
|
|
|
|
plistPmPdRuleItemDO = subService.getPmPdRuleItem();
|
|
|
|
logger.info("******7组板设计规则集数据获取完毕*******");
|
|
|
|
// logger.info("******7组板设计规则集数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//8最小轧制厚度公差范围基准表
|
|
|
|
//8最小轧制厚度公差范围基准表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmMinThickTolBtDO = subService.getPmMinThickTolBt();
|
|
|
|
plistPmMinThickTolBtDO = subService.getPmMinThickTolBt();
|
|
|
|
logger.info("******8最小轧制厚度公差范围基准表数据获取完毕*******");
|
|
|
|
// logger.info("******8最小轧制厚度公差范围基准表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//9钢板轧制规格对应收得率基准表
|
|
|
|
//9钢板轧制规格对应收得率基准表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmPlateSpecYieldBtDO = subService.getPmPlateSpecYieldBt();
|
|
|
|
plistPmPlateSpecYieldBtDO = subService.getPmPlateSpecYieldBt();
|
|
|
|
logger.info("******9钢板轧制规格对应收得率基准表数据获取完毕*******");
|
|
|
|
// logger.info("******9钢板轧制规格对应收得率基准表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//10强度级别对照基准表
|
|
|
|
//10强度级别对照基准表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmStCodeBtDO = subService.getPmStCodeBt();
|
|
|
|
plistPmStCodeBtDO = subService.getPmStCodeBt();
|
|
|
|
logger.info("******10强度级别对照基准表数据获取完毕*******");
|
|
|
|
// logger.info("******10强度级别对照基准表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//11粗切位置决定基准表
|
|
|
|
//11粗切位置决定基准表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmCutPlaceBtDO = subService.getPmCutPlaceBt();
|
|
|
|
plistPmCutPlaceBtDO = subService.getPmCutPlaceBt();
|
|
|
|
logger.info("******11粗切位置决定基准表数据获取完毕*******");
|
|
|
|
// logger.info("******11粗切位置决定基准表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//12组板常数基准表
|
|
|
|
//12组板常数基准表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmPdConstBtDO = subService.getPmPdConstBt();
|
|
|
|
plistPmPdConstBtDO = subService.getPmPdConstBt();
|
|
|
|
logger.info("******12组板常数基准表数据获取完毕*******");
|
|
|
|
// logger.info("******12组板常数基准表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//13钢板切缝切头尾范围基准表
|
|
|
|
//13钢板切缝切头尾范围基准表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmPlateCutLenBtDO = subService.getPmPlateCutLenBt();
|
|
|
|
plistPmPlateCutLenBtDO = subService.getPmPlateCutLenBt();
|
|
|
|
logger.info("******13钢板切缝切头尾范围基准表数据获取完毕*******");
|
|
|
|
// logger.info("******13钢板切缝切头尾范围基准表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//14组板临时收得率基准表
|
|
|
|
//14组板临时收得率基准表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmPdTmpYieldBtDO = subService.getPmPdTmpYieldBt();
|
|
|
|
plistPmPdTmpYieldBtDO = subService.getPmPdTmpYieldBt();
|
|
|
|
logger.info("******14组板临时收得率基准表数据获取完毕*******");
|
|
|
|
// logger.info("******14组板临时收得率基准表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//15钢板切边量基准表
|
|
|
|
//15钢板切边量基准表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmPlateTrimBtDO = subService.getPmPlateTrimBt();
|
|
|
|
plistPmPlateTrimBtDO = subService.getPmPlateTrimBt();
|
|
|
|
logger.info("******15钢板切边量基准表数据获取完毕*******");
|
|
|
|
// logger.info("******15钢板切边量基准表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//16余材组板内部钢种以优充次对照表
|
|
|
|
//16余材组板内部钢种以优充次对照表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmSlabReplBtDO = subService.getPmSlabReplBt();
|
|
|
|
plistPmSlabReplBtDO = subService.getPmSlabReplBt();
|
|
|
|
logger.info("******16余材组板内部钢种以优充次对照表数据获取完毕*******");
|
|
|
|
// logger.info("******16余材组板内部钢种以优充次对照表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//17热处理炉基准规格表
|
|
|
|
//17热处理炉基准规格表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmHeatTreatFurnaceBtDO = subService.getPmHeatTreatFurnaceBt();
|
|
|
|
plistPmHeatTreatFurnaceBtDO = subService.getPmHeatTreatFurnaceBt();
|
|
|
|
logger.info("******17热处理炉基准规格表数据获取完毕*******");
|
|
|
|
// logger.info("******17热处理炉基准规格表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//18特殊钢种余量增加表
|
|
|
|
//18特殊钢种余量增加表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistPmSpeStAddvBtDO = subService.getPmSpeStAddvBt();
|
|
|
|
plistPmSpeStAddvBtDO = subService.getPmSpeStAddvBt();
|
|
|
|
logger.info("******18特殊钢种余量增加表数据获取完毕*******");
|
|
|
|
// logger.info("******18特殊钢种余量增加表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//19合同处理成分结果数据
|
|
|
|
//19合同处理成分结果数据
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistQdToLineupResultCheDO = subService.getQdToLineupResultChe();
|
|
|
|
plistQdToLineupResultCheDO = subService.getQdToLineupResultChe();
|
|
|
|
logger.info("******19合同处理成分结果数据获取完毕*******");
|
|
|
|
// logger.info("******19合同处理成分结果数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//20合同处理坯料性能要求
|
|
|
|
//20合同处理坯料性能要求
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistQdToLineupResultSlabphyDO = subService.getQdToLineupResultSlabphy();
|
|
|
|
plistQdToLineupResultSlabphyDO = subService.getQdToLineupResultSlabphy();
|
|
|
|
logger.info("******20合同处理坯料性能要求数据获取完毕*******");
|
|
|
|
// logger.info("******20合同处理坯料性能要求数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//21炉次工序成分代表实绩表
|
|
|
|
//21炉次工序成分代表实绩表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistQeTqHeatcheStandResultDO = subService.getQeTqHeatcheStandResult();
|
|
|
|
plistQeTqHeatcheStandResultDO = subService.getQeTqHeatcheStandResult();
|
|
|
|
logger.info("******21炉次工序成分代表实绩表数据获取完毕*******");
|
|
|
|
// logger.info("******21炉次工序成分代表实绩表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//22炉次待委托表
|
|
|
|
//22炉次待委托表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistQeTqPonoWaitTestDO = subService.getQeTqPonoWaitTest();
|
|
|
|
plistQeTqPonoWaitTestDO = subService.getQeTqPonoWaitTest();
|
|
|
|
logger.info("******22炉次待委托表数据获取完毕*******");
|
|
|
|
// logger.info("******22炉次待委托表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//23坯料低倍委托实绩表
|
|
|
|
//23坯料低倍委托实绩表
|
|
|
|
tasks.add(() -> {
|
|
|
|
tasks.add(() -> {
|
|
|
|
plistQeTqSlabMacroResultDO = subService.getQeTqSlabMacroResult();
|
|
|
|
plistQeTqSlabMacroResultDO = subService.getQeTqSlabMacroResult();
|
|
|
|
logger.info("******23坯料低倍委托实绩表数据获取完毕*******");
|
|
|
|
// logger.info("******23坯料低倍委托实绩表数据获取完毕*******");
|
|
|
|
return null;
|
|
|
|
return null;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
@ -461,6 +458,26 @@ public class SubController {
|
|
|
|
|
|
|
|
|
|
|
|
//存在订单,添加可计算分组
|
|
|
|
//存在订单,添加可计算分组
|
|
|
|
if (GCG.getLtInfoGPreOrder().size() > 0) {
|
|
|
|
if (GCG.getLtInfoGPreOrder().size() > 0) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// GCG.getLtInfoGPreOrder().stream().filter(e->e.)
|
|
|
|
|
|
|
|
//最大宽度
|
|
|
|
|
|
|
|
OptionalInt maxWidth = GCG.getLtInfoGPreOrder().stream()
|
|
|
|
|
|
|
|
.mapToInt(GPreOrder::getWid)
|
|
|
|
|
|
|
|
.max();
|
|
|
|
|
|
|
|
//最大宽度余量
|
|
|
|
|
|
|
|
OptionalInt maxAddWidth = GCG.getLtInfoGPreOrder().stream()
|
|
|
|
|
|
|
|
.mapToInt(GPreOrder::getWid)
|
|
|
|
|
|
|
|
.max();
|
|
|
|
|
|
|
|
//最大厚度公差最小值
|
|
|
|
|
|
|
|
Optional<BigDecimal> maxTolThkMin = GCG.getLtInfoGPreOrder().stream()
|
|
|
|
|
|
|
|
.map(GPreOrder::getThickTolMin)
|
|
|
|
|
|
|
|
.reduce(BigDecimal::max);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int intWid = maxWidth.orElse(0);
|
|
|
|
|
|
|
|
BigDecimal decThk = maxThk.orElse(BigDecimal.ZERO);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
gltGCalGrp.add(GCG);
|
|
|
|
gltGCalGrp.add(GCG);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -486,6 +503,7 @@ public class SubController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//订单要求化学成分
|
|
|
|
//订单要求化学成分
|
|
|
|
|
|
|
|
logger.info("化学成分订单号:"+GrpOrd.getOrderNo());
|
|
|
|
List<QdToLineupResultCheDO> ltLrc = new ArrayList<>();
|
|
|
|
List<QdToLineupResultCheDO> ltLrc = new ArrayList<>();
|
|
|
|
if (plistQdToLineupResultCheDO.stream().anyMatch(p -> p.getOrderNo().equals(GrpOrd.getOrderNo()) && p.getCheType().equals("RX"))) {
|
|
|
|
if (plistQdToLineupResultCheDO.stream().anyMatch(p -> p.getOrderNo().equals(GrpOrd.getOrderNo()) && p.getCheType().equals("RX"))) {
|
|
|
|
ltLrc = plistQdToLineupResultCheDO.stream().filter(p -> p.getOrderNo().equals(SInfo.getOrderNo()) && p.getCheType().equals("RX")).collect(Collectors.toList());
|
|
|
|
ltLrc = plistQdToLineupResultCheDO.stream().filter(p -> p.getOrderNo().equals(SInfo.getOrderNo()) && p.getCheType().equals("RX")).collect(Collectors.toList());
|
|
|
@ -502,7 +520,7 @@ public class SubController {
|
|
|
|
boolean blnChk = ltLrc.stream().anyMatch(p -> {
|
|
|
|
boolean blnChk = ltLrc.stream().anyMatch(p -> {
|
|
|
|
if (!ltQthsr.stream().anyMatch(e -> e.getElm().equals(p.getElm())
|
|
|
|
if (!ltQthsr.stream().anyMatch(e -> e.getElm().equals(p.getElm())
|
|
|
|
&& (e.getTestOriginalResult().compareTo(NumberUtils.createBigDecimal(p.getElmMin())) >= 0
|
|
|
|
&& (e.getTestOriginalResult().compareTo(NumberUtils.createBigDecimal(p.getElmMin())) >= 0
|
|
|
|
&& e.getTestOriginalResult().compareTo(NumberUtils.createBigDecimal(p.getElmMax())) >= 0))) {
|
|
|
|
&& e.getTestOriginalResult().compareTo(NumberUtils.createBigDecimal(p.getElmMax())) <= 0))) {
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
@ -1091,11 +1109,12 @@ public class SubController {
|
|
|
|
public void SetGroupCalRslt(SlabInfoDO SInfo) {
|
|
|
|
public void SetGroupCalRslt(SlabInfoDO SInfo) {
|
|
|
|
|
|
|
|
|
|
|
|
//轧机最大长度
|
|
|
|
//轧机最大长度
|
|
|
|
int intRollMaxLen = plistPmPdConstBtDO.stream().filter(p->p.getRollLineNo()=="30").findFirst().orElse(null).getHpmMaxPLen().intValue();
|
|
|
|
int intRollMaxLen = plistPmPdConstBtDO.stream().filter(p -> p.getRollLineNo().equals("30")).findFirst().orElse(null).getHpmMaxPLen().intValue();
|
|
|
|
//轧机最小长度
|
|
|
|
//轧机最小长度
|
|
|
|
int intRollMinLen = plistPmPdConstBtDO.stream().filter(p->p.getRollLineNo()=="30").findFirst().orElse(null).getHpmMinPLen().intValue();
|
|
|
|
int intRollMinLen = plistPmPdConstBtDO.stream().filter(p -> p.getRollLineNo().equals("30")).findFirst().orElse(null).getHpmMinPLen().intValue();
|
|
|
|
|
|
|
|
|
|
|
|
gltGCalGrp.parallelStream().forEach(e->{
|
|
|
|
// gltGCalGrp.parallelStream().forEach(e->{
|
|
|
|
|
|
|
|
gltGCalGrp.forEach(e -> {
|
|
|
|
//实例化计算结果数组
|
|
|
|
//实例化计算结果数组
|
|
|
|
GGrpCalRslt GGCR = new GGrpCalRslt();
|
|
|
|
GGrpCalRslt GGCR = new GGrpCalRslt();
|
|
|
|
//可轧制最大长度
|
|
|
|
//可轧制最大长度
|
|
|
@ -1114,8 +1133,7 @@ public class SubController {
|
|
|
|
intMaxLen = (BigDecimal.valueOf(intSlabLen).divide(intThk.multiply(BigDecimal.valueOf(intWid)), RoundingMode.HALF_UP)).intValue();
|
|
|
|
intMaxLen = (BigDecimal.valueOf(intSlabLen).divide(intThk.multiply(BigDecimal.valueOf(intWid)), RoundingMode.HALF_UP)).intValue();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//不能小于可轧制的最小长度
|
|
|
|
//不能小于可轧制的最小长度
|
|
|
|
if (intMaxLen<intRollMinLen)
|
|
|
|
if (intMaxLen < intRollMinLen) {
|
|
|
|
{
|
|
|
|
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -1128,8 +1146,8 @@ public class SubController {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
//分组计算
|
|
|
|
//分组计算
|
|
|
|
gltGGrpCalRslt.parallelStream().forEach(p->{
|
|
|
|
// gltGGrpCalRslt.parallelStream().forEach(p -> {
|
|
|
|
|
|
|
|
gltGGrpCalRslt.forEach(p -> {
|
|
|
|
// 测试数据
|
|
|
|
// 测试数据
|
|
|
|
|
|
|
|
|
|
|
|
// 生成 values 和 weights 数组
|
|
|
|
// 生成 values 和 weights 数组
|
|
|
@ -1151,8 +1169,8 @@ public class SubController {
|
|
|
|
|
|
|
|
|
|
|
|
//TODO:轧制方向,轧制模式 没有其他值暂不考虑,之后数据完善后需要考虑
|
|
|
|
//TODO:轧制方向,轧制模式 没有其他值暂不考虑,之后数据完善后需要考虑
|
|
|
|
PmPlateCutLenBtDO PPCLB = plistPmPlateCutLenBtDO.stream().
|
|
|
|
PmPlateCutLenBtDO PPCLB = plistPmPlateCutLenBtDO.stream().
|
|
|
|
filter(f -> f.getMscLineNo() == "1030"
|
|
|
|
filter(f -> f.getMscLineNo().equals("1030")
|
|
|
|
&& f.getBrrNeed() ==((p.getCal_Wid()>SInfo.getSlabActWid().intValue())?"1":"0")
|
|
|
|
&& f.getBrrNeed().equals((p.getCal_Wid() > SInfo.getSlabActWid().intValue()) ? "1" : "0")
|
|
|
|
&& f.getPlateThickFrom().compareTo(p.getCal_Thk()) <= 0
|
|
|
|
&& f.getPlateThickFrom().compareTo(p.getCal_Thk()) <= 0
|
|
|
|
&& f.getPlateThickTo().compareTo(p.getCal_Thk()) >= 0
|
|
|
|
&& f.getPlateThickTo().compareTo(p.getCal_Thk()) >= 0
|
|
|
|
&& f.getSlabThickFrom().compareTo(SInfo.getSlabActThk()) <= 0
|
|
|
|
&& f.getSlabThickFrom().compareTo(SInfo.getSlabActThk()) <= 0
|
|
|
@ -1188,7 +1206,6 @@ public class SubController {
|
|
|
|
//根据实际订单再计算
|
|
|
|
//根据实际订单再计算
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|