|
@@ -100,7 +100,7 @@ public class AppAgentController extends BaseController {
|
|
|
|
|
|
double money = 0;
|
|
|
if(null != appUserCountList && appUserCountList.size() > 0){
|
|
|
- List<AppUserCount> finalAppUserCountList = appUserCountList;
|
|
|
+
|
|
|
|
|
|
return finalAppUserCountList.stream().mapToDouble(e->{
|
|
|
return (e.getGameLoseAmount() - e.getGameWinAmount() - e.getGameCommission() - e.getRechargeGive()) * appUserAgent1.getDividendGuaranteeRate()/100;
|
|
@@ -117,16 +117,16 @@ public class AppAgentController extends BaseController {
|
|
|
}
|
|
|
}).sum();
|
|
|
}*/
|
|
|
- money = dealChildel(teamUser,money);
|
|
|
+
|
|
|
|
|
|
|
|
|
-
|
|
|
- return e.getGameLoseAmount() - e.getGameWinAmount() - e.getGameCommission() - e.getRechargeGive();
|
|
|
+ double winLose = appUserCountList.stream().mapToDouble(e->{
|
|
|
+ return e.getGameLoseAmount() - (e.getGameWinAmount() - (e.getGameBetting() - e.getGameLoseAmount())) - e.getGameCommission() - e.getRechargeGive();
|
|
|
}).sum();
|
|
|
|
|
|
if(winLose > 0){
|
|
|
money += BigDecimal.valueOf(winLose * teamUser.getDividendGuaranteeRate() / 100).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
|
|
|
- }*/
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|