|
@@ -156,7 +156,7 @@ public class TenantAssetsInfoServiceImpl extends ServiceImpl<TenantAssetsInfoDao
|
|
|
//当前余额
|
|
|
BigDecimal balance = assetsInfo.getBalance();
|
|
|
//当前余额 减 本次扣费 的剩余额度
|
|
|
- BigDecimal after = balance.subtract(coursePrice);
|
|
|
+ BigDecimal after = balance.subtract(coursePrice).setScale(2,RoundingMode.HALF_UP);
|
|
|
//300
|
|
|
BigDecimal threeHundred = new BigDecimal(300);
|
|
|
//当前余额大于300 并且 本次扣除后剩余额度小于300 就发信息提醒
|