提交 6554fafc authored 作者: aiqingguo's avatar aiqingguo

修改亏吨计算公式

上级 8d3b0edc
...@@ -83,7 +83,7 @@ public class SettlementDriverDetailServiceImpl implements SettlementDriverDetai ...@@ -83,7 +83,7 @@ public class SettlementDriverDetailServiceImpl implements SettlementDriverDetai
* 亏吨计算 * 亏吨计算
*/ */
private BigDecimal lossWeightCalc(BigDecimal loadNet, BigDecimal unLoadNet){ private BigDecimal lossWeightCalc(BigDecimal loadNet, BigDecimal unLoadNet){
return unLoadNet.compareTo(loadNet) < 0? unLoadNet.subtract(loadNet) : BigDecimal.ZERO; return unLoadNet.compareTo(loadNet) < 0? loadNet.subtract(unLoadNet) : BigDecimal.ZERO;
} }
/** /**
......
...@@ -101,7 +101,7 @@ public class SettlementOwnerDetailServiceImpl implements SettlementOwnerDetailS ...@@ -101,7 +101,7 @@ public class SettlementOwnerDetailServiceImpl implements SettlementOwnerDetailS
* 亏吨计算 * 亏吨计算
*/ */
private BigDecimal lossWeightCalc(BigDecimal loadNet, BigDecimal unLoadNet){ private BigDecimal lossWeightCalc(BigDecimal loadNet, BigDecimal unLoadNet){
return unLoadNet.compareTo(loadNet) < 0? unLoadNet.subtract(loadNet) : BigDecimal.ZERO; return unLoadNet.compareTo(loadNet) < 0? loadNet.subtract(unLoadNet) : BigDecimal.ZERO;
} }
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论