|
@@ -236,7 +236,8 @@ public class AppUserAgentServiceImpl extends ServiceImpl<AppUserAgentMapper, App
|
|
|
e.setGameCommission(BigDecimal.valueOf(appUserCountList.stream().mapToDouble(AppUserCount::getGameCommission).sum()).setScale(2, RoundingMode.HALF_UP).doubleValue());
|
|
|
//盈亏
|
|
|
e.setGameAmount(BigDecimal.valueOf(appUserCountList.stream().mapToDouble(userCount->{
|
|
|
- return (userCount.getGameWinAmount() - userCount.getGameLoseAmount()) + userCount.getGameCommission() + userCount.getRechargeGive();
|
|
|
+ return ((userCount.getGameWinAmount() - (userCount.getGameBetting() - userCount.getGameLoseAmount()))
|
|
|
+ - userCount.getGameLoseAmount()) + userCount.getGameCommission() + userCount.getRechargeGive();
|
|
|
}).sum()).setScale(2, RoundingMode.HALF_UP).doubleValue());
|
|
|
//充值金额(由于统计的金额是扣除了手续费并且加上赠送金额的值 故这么计算出原始充值金额)
|
|
|
e.setRechargeAmount(BigDecimal.valueOf(appUserCountList.stream().mapToDouble(userCount->{
|