opt:合批模式开单小数点精度问题改为4位数
This commit is contained in:
@@ -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){
|
||||
//用新料补足剩余部分
|
||||
|
||||
Reference in New Issue
Block a user