|
@@ -93,7 +93,7 @@ public class UserAccountServiceImpl extends ServiceImpl<UserAccountDao, UserAcco
|
|
|
AccountTotal total = new AccountTotal();
|
|
|
|
|
|
total.setTotalInAmount(practiceAmount.add(liveAmount).add(musicAmount));
|
|
|
- if (!BigDecimal.ZERO.equals(total.getTotalInAmount())) {
|
|
|
+ if (total.getTotalInAmount().doubleValue() > 0) {
|
|
|
total.setPracticeAmount(practiceAmount);
|
|
|
BigDecimal practiceRate = total.getPracticeAmount()
|
|
|
.divide(total.getTotalInAmount(), 4, RoundingMode.HALF_UP).multiply(new BigDecimal("100"));
|