|
@@ -300,6 +300,7 @@ public class UserAccountServiceImpl extends ServiceImpl<UserAccountDao, UserAcco
|
|
|
BigDecimal practiceAmount = BigDecimal.ZERO;
|
|
|
BigDecimal vipCourseAmount = BigDecimal.ZERO;
|
|
|
BigDecimal liveAmount = BigDecimal.ZERO;
|
|
|
+ BigDecimal groupAmount = BigDecimal.ZERO;
|
|
|
BigDecimal videoAmount = BigDecimal.ZERO;
|
|
|
BigDecimal musicAmount = BigDecimal.ZERO;
|
|
|
|
|
@@ -317,6 +318,7 @@ public class UserAccountServiceImpl extends ServiceImpl<UserAccountDao, UserAcco
|
|
|
practiceAmount = practiceAmount.add(info.getPracticeAmount());
|
|
|
vipCourseAmount = vipCourseAmount.add(info.getVipCourseAmount());
|
|
|
liveAmount = liveAmount.add(info.getLiveAmount());
|
|
|
+ groupAmount = groupAmount.add(info.getGroupAmount());
|
|
|
videoAmount = videoAmount.add(info.getVideoAmount());
|
|
|
musicAmount = musicAmount.add(info.getMusicAmount());
|
|
|
|
|
@@ -331,7 +333,7 @@ public class UserAccountServiceImpl extends ServiceImpl<UserAccountDao, UserAcco
|
|
|
AccountTotal total = new AccountTotal();
|
|
|
|
|
|
total.setTotalInAmount(
|
|
|
- practiceAmount.add(liveAmount).add(videoAmount).add(musicAmount)
|
|
|
+ practiceAmount.add(liveAmount).add(groupAmount).add(videoAmount).add(musicAmount)
|
|
|
.add(liveShareAmount).add(videoShareAmount).add(musicShareAmount)
|
|
|
.add(vipShareAmount).add(mallShareAmount).add(actiRegistShareAmount).add(albumShareAmount)
|
|
|
.add(vipCourseAmount)
|
|
@@ -352,6 +354,12 @@ public class UserAccountServiceImpl extends ServiceImpl<UserAccountDao, UserAcco
|
|
|
.divide(total.getTotalInAmount(), 4, RoundingMode.HALF_UP)
|
|
|
.multiply(new BigDecimal("100")));
|
|
|
|
|
|
+
|
|
|
+ total.setGroupAmount(groupAmount);
|
|
|
+ total.setGroupRate(total.getGroupAmount()
|
|
|
+ .divide(total.getTotalInAmount(), 4, RoundingMode.HALF_UP)
|
|
|
+ .multiply(new BigDecimal("100")));
|
|
|
+
|
|
|
total.setVideoAmount(videoAmount);
|
|
|
total.setVideoRate(total.getVideoAmount()
|
|
|
.divide(total.getTotalInAmount(), 4, RoundingMode.HALF_UP)
|
|
@@ -398,6 +406,7 @@ public class UserAccountServiceImpl extends ServiceImpl<UserAccountDao, UserAcco
|
|
|
.subtract(total.getPracticeRate())
|
|
|
.subtract(total.getVipCourseRate())
|
|
|
.subtract(total.getLiveRate())
|
|
|
+ .subtract(total.getGroupRate())
|
|
|
.subtract(total.getVideoRate())
|
|
|
.subtract(total.getMusicRate())
|
|
|
.subtract(total.getMusicShareRate())
|
|
@@ -550,6 +559,8 @@ public class UserAccountServiceImpl extends ServiceImpl<UserAccountDao, UserAcco
|
|
|
null == info.getVipCourseAmount() ? BigDecimal.ZERO.setScale(2, RoundingMode.HALF_UP) : info.getVipCourseAmount().setScale(2, RoundingMode.HALF_UP));
|
|
|
info.setLiveAmount(
|
|
|
null == info.getLiveAmount() ? BigDecimal.ZERO.setScale(2, RoundingMode.HALF_UP) : info.getLiveAmount().setScale(2, RoundingMode.HALF_UP));
|
|
|
+ info.setGroupAmount(
|
|
|
+ null == info.getLiveAmount() ? BigDecimal.ZERO.setScale(2, RoundingMode.HALF_UP) : info.getGroupAmount().setScale(2, RoundingMode.HALF_UP));
|
|
|
info.setVideoAmount(
|
|
|
null == info.getVideoAmount() ? BigDecimal.ZERO.setScale(2, RoundingMode.HALF_UP) : info.getVideoAmount().setScale(2, RoundingMode.HALF_UP));
|
|
|
info.setMusicAmount(
|