|
|
|
@ -772,7 +772,11 @@ public class SubController {
|
|
|
|
|
|
|
|
|
|
//压缩比 Compression ratio
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//宽展比 Wide ratio
|
|
|
|
|
//GCG.getLtInfoGPreOrder().stream().filter(e->e.)
|
|
|
|
|
//最大宽度
|
|
|
|
|
|
|
|
|
|
//钢种标准对比
|
|
|
|
|
|
|
|
|
@ -794,7 +798,7 @@ public class SubController {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 化学成分 chemical composition
|
|
|
|
|
//化学成分 chemical composition
|
|
|
|
|
if (!ChkChemical(SInfo, f)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -833,10 +837,30 @@ public class SubController {
|
|
|
|
|
//宽展比 保留2位小数
|
|
|
|
|
BigDecimal decWidRate = BigDecimal.valueOf(maxWidth.orElse(0)).divide(SInfo.getSlabActWid(), 2, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
|
|
|
//最大厚度公差最小值
|
|
|
|
|
//宽展比
|
|
|
|
|
GCG.setWid_Rate(decWidRate);
|
|
|
|
|
|
|
|
|
|
BigDecimal decThkOrd = GCG.getLtInfoGPreOrder().get(0).getThk();
|
|
|
|
|
//压缩比
|
|
|
|
|
BigDecimal decThkRate =decThkOrd.divide(SInfo.getSlabActThk(), 2, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
|
|
|
//压缩比
|
|
|
|
|
GCG.setThk_Rate(decThkRate);
|
|
|
|
|
|
|
|
|
|
//最大厚度公差下限最大值
|
|
|
|
|
Optional<BigDecimal> maxTolThkMin = GCG.getLtInfoGPreOrder().stream()
|
|
|
|
|
.map(GPreOrder::getThickTolMin)
|
|
|
|
|
.reduce(BigDecimal::max);
|
|
|
|
|
|
|
|
|
|
//最大厚度公差上限最小值
|
|
|
|
|
Optional<BigDecimal> maxTolThkMax = GCG.getLtInfoGPreOrder().stream()
|
|
|
|
|
.map(GPreOrder::getThickTolMax)
|
|
|
|
|
.reduce(BigDecimal::min);
|
|
|
|
|
//厚度公差交集上限
|
|
|
|
|
GCG.setThickTolMax(maxTolThkMax.orElse(BigDecimal.ZERO));
|
|
|
|
|
//厚度公差交集上限
|
|
|
|
|
GCG.setThickTolMin(maxTolThkMin.orElse(BigDecimal.ZERO));
|
|
|
|
|
|
|
|
|
|
//厚度追加值
|
|
|
|
|
BigDecimal decThkAdd= BigDecimal.ZERO;
|
|
|
|
|
|
|
|
|
@ -892,6 +916,9 @@ public class SubController {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//厚度追加值
|
|
|
|
|
GCG.setThk_Add(decThkAdd);
|
|
|
|
|
|
|
|
|
|
//轧制厚度 厚度+厚度公差下限最大值+厚度追加值
|
|
|
|
|
BigDecimal decThk = e.getThk().add(maxTolThkMin.orElse(BigDecimal.ZERO)).add(decThkAdd);
|
|
|
|
|
|
|
|
|
@ -1104,6 +1131,25 @@ public class SubController {
|
|
|
|
|
.map(GPreOrder::getThickTolMin)
|
|
|
|
|
.reduce(BigDecimal::max);
|
|
|
|
|
|
|
|
|
|
//宽展比
|
|
|
|
|
GCG.setWid_Rate(decWidRate);
|
|
|
|
|
|
|
|
|
|
BigDecimal decThkOrd = GCG.getLtInfoGPreOrder().get(0).getThk();
|
|
|
|
|
//压缩比
|
|
|
|
|
BigDecimal decThkRate =decThkOrd.divide(SInfo.getSlabActThk(), 2, RoundingMode.HALF_UP);
|
|
|
|
|
|
|
|
|
|
//压缩比
|
|
|
|
|
GCG.setThk_Rate(decThkRate);
|
|
|
|
|
|
|
|
|
|
//最大厚度公差上限最小值
|
|
|
|
|
Optional<BigDecimal> maxTolThkMax = GCG.getLtInfoGPreOrder().stream()
|
|
|
|
|
.map(GPreOrder::getThickTolMax)
|
|
|
|
|
.reduce(BigDecimal::min);
|
|
|
|
|
//厚度公差交集上限
|
|
|
|
|
GCG.setThickTolMax(maxTolThkMax.orElse(BigDecimal.ZERO));
|
|
|
|
|
//厚度公差交集上限
|
|
|
|
|
GCG.setThickTolMin(maxTolThkMin.orElse(BigDecimal.ZERO));
|
|
|
|
|
|
|
|
|
|
//厚度追加值
|
|
|
|
|
BigDecimal decThkAdd = BigDecimal.ZERO;
|
|
|
|
|
|
|
|
|
@ -1160,6 +1206,9 @@ public class SubController {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//厚度追加值
|
|
|
|
|
GCG.setThk_Add(decThkAdd);
|
|
|
|
|
|
|
|
|
|
//轧制厚度 厚度+厚度公差下限最大值+厚度追加值
|
|
|
|
|
BigDecimal decThk = e.getThk().add(maxTolThkMin.orElse(BigDecimal.ZERO)).add(decThkAdd);
|
|
|
|
|
|
|
|
|
|