|
@@ -305,6 +305,7 @@ public class UserAccountServiceImpl extends ServiceImpl<UserAccountDao, UserAcco
|
|
|
BigDecimal liveShareAmount = BigDecimal.ZERO;
|
|
|
BigDecimal videoShareAmount = BigDecimal.ZERO;
|
|
|
BigDecimal musicShareAmount = BigDecimal.ZERO;
|
|
|
+ BigDecimal albumShareAmount = BigDecimal.ZERO;
|
|
|
BigDecimal vipShareAmount = BigDecimal.ZERO;
|
|
|
BigDecimal mallShareAmount = BigDecimal.ZERO;
|
|
|
BigDecimal actiRegistShareAmount = BigDecimal.ZERO;
|
|
@@ -320,6 +321,7 @@ public class UserAccountServiceImpl extends ServiceImpl<UserAccountDao, UserAcco
|
|
|
liveShareAmount = liveShareAmount.add(info.getLiveShareAmount());
|
|
|
videoShareAmount = videoShareAmount.add(info.getVideoShareAmount());
|
|
|
musicShareAmount = musicShareAmount.add(info.getMusicShareAmount());
|
|
|
+ albumShareAmount = albumShareAmount.add(info.getAlbumShareAmount());
|
|
|
vipShareAmount = vipShareAmount.add(info.getVipShareAmount());
|
|
|
mallShareAmount = mallShareAmount.add(info.getMallShareAmount());
|
|
|
actiRegistShareAmount = actiRegistShareAmount.add(info.getActiRegistShareAmount());
|
|
@@ -329,7 +331,7 @@ public class UserAccountServiceImpl extends ServiceImpl<UserAccountDao, UserAcco
|
|
|
total.setTotalInAmount(
|
|
|
practiceAmount.add(liveAmount).add(videoAmount).add(musicAmount)
|
|
|
.add(liveShareAmount).add(videoShareAmount).add(musicShareAmount)
|
|
|
- .add(vipShareAmount).add(mallShareAmount).add(actiRegistShareAmount)
|
|
|
+ .add(vipShareAmount).add(mallShareAmount).add(actiRegistShareAmount).add(albumShareAmount)
|
|
|
);
|
|
|
if (total.getTotalInAmount().doubleValue() > 0) {
|
|
|
total.setPracticeAmount(practiceAmount);
|
|
@@ -367,6 +369,11 @@ public class UserAccountServiceImpl extends ServiceImpl<UserAccountDao, UserAcco
|
|
|
.divide(total.getTotalInAmount(), 4, RoundingMode.HALF_UP)
|
|
|
.multiply(new BigDecimal("100")));
|
|
|
|
|
|
+ total.setAlbumShareAmount(albumShareAmount);
|
|
|
+ total.setAlbumShareRate(total.getAlbumShareRate()
|
|
|
+ .divide(total.getTotalInAmount(), 4, RoundingMode.HALF_UP)
|
|
|
+ .multiply(new BigDecimal("100")));
|
|
|
+
|
|
|
total.setVipShareAmount(vipShareAmount);
|
|
|
total.setVipShareRate(total.getVipShareAmount()
|
|
|
.divide(total.getTotalInAmount(), 4, RoundingMode.HALF_UP)
|