Explorar el Código

处理金额新增金额都重新计算一遍总额,真实,总计金额。

anderx hace 2 años
padre
commit
b329cd8b62

+ 1 - 1
src/main/java/com/goafanti/expenseAccount/service/impl/ExpenseAccountServiceImpl.java

@@ -277,7 +277,7 @@ public class ExpenseAccountServiceImpl extends BaseMybatisDao<ExpenseAccountMapp
             realAmount=realAmount.add(e.getRealAmount());
         }
         in.setTotalAmount(totalAmount);
-        in.setAmount(in.getRealAmount().subtract(useEA.getSettlementAmount()));
+        in.setAmount(realAmount.subtract(useEA.getSettlementAmount()));
         in.setRealAmount(in.getAmount());
     }