Commit 53e9f5d0 by huluobin

# 更新

parent d3dd3162
......@@ -102,14 +102,14 @@ public class AppCostServiceImpl implements AppCostService {
public static BigDecimal rece(BigDecimal amount, int months) {
if (months > 1) {
return rece(amount.add(new BigDecimal("1000")).multiply(new BigDecimal("1.03")), months - 1);
return rece(amount.add(new BigDecimal("5000")).multiply(new BigDecimal("1.1")), months - 1);
} else {
return amount.add(new BigDecimal("1000")).multiply(new BigDecimal("1.03"));
return amount.add(new BigDecimal("5000")).multiply(new BigDecimal("1.1"));
}
}
public static void main(String[] args) {
System.out.println(rece(new BigDecimal("30000"), 50));
System.out.println(rece(new BigDecimal("40000"), 12));
}
}
......@@ -81,7 +81,6 @@ public class CostTypeServiceImpl extends ServiceImpl<CostTypeDao, CostTypeDomain
this.save(lendCostTypeDomain);
}
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment