opt:合批模式开单小数点精度问题改为4位数

This commit is contained in:
zhangzq
2024-07-15 15:43:30 +08:00
parent a69959aa61
commit ef18ac4d88

View File

@@ -5425,6 +5425,9 @@ public class AutoformulaServiceImpl implements AutoformulaService {
}
//BOM中碳化钨需含总碳
double CT2 = new_qty*(sum_Cr3C2/100.0)*(c_balance/100.0);
CT2 = new BigDecimal(CT2).setScale(4, BigDecimal.ROUND_HALF_UP).doubleValue();
CT1 = new BigDecimal(CT1).setScale(4, BigDecimal.ROUND_HALF_UP).doubleValue();
//配粉结束
if(CT1==CT2){
//用新料补足剩余部分