|
@@ -93,11 +93,14 @@ public class AppUserCountTask {
|
|
|
|
|
|
appUserCount.setRechargeCommission(appUsersChargeList.stream().filter(e -> e.getUid().equals(appUser.getUserid())).mapToDouble(e -> e.getPlatformService()).sum());
|
|
|
|
|
|
- appUserCount.setRechargeGive(finTranRecordList.stream().filter(e -> {
|
|
|
+
|
|
|
return e.getUid().equals(appUser.getUserid()) &&
|
|
|
e.getTranType1().intValue() == FinTranType1.U_Income_Coin_Balance.getType() &&
|
|
|
e.getTranType3().intValue() == FinTranType3.CHARGE_IN_REWARD.getType();
|
|
|
- }).mapToDouble(e->e.getCoinChange()).sum());
|
|
|
+ }).mapToDouble(e->e.getCoinChange()).sum()); */
|
|
|
+ appUserCount.setRechargeGive(appUsersChargeList.stream().filter(e -> {
|
|
|
+ return e.getUid().equals(appUser.getUserid());
|
|
|
+ }).mapToDouble(e->null==e.getCoinGive()?0:e.getCoinGive().doubleValue()).sum());
|
|
|
|
|
|
appUserCount.setWithdrawalCommission(appUsersCashrecords.stream().filter(e -> e.getUid().equals(appUser.getUserid())).mapToDouble(e -> e.getService().doubleValue()).sum());
|
|
|
|
|
@@ -201,11 +204,14 @@ public class AppUserCountTask {
|
|
|
|
|
|
appUserCount.setRechargeCommission(appUsersChargeList.stream().filter(e -> e.getUid().equals(appUser.getUserid())).mapToDouble(e -> e.getPlatformService()).sum());
|
|
|
|
|
|
- appUserCount.setRechargeGive(finTranRecordList.stream().filter(e -> {
|
|
|
+
|
|
|
return e.getUid().equals(appUser.getUserid()) &&
|
|
|
e.getTranType1().intValue() == FinTranType1.U_Income_Coin_Balance.getType() &&
|
|
|
e.getTranType3().intValue() == FinTranType3.CHARGE_IN_REWARD.getType();
|
|
|
- }).mapToDouble(e->e.getCoinChange()).sum());
|
|
|
+ }).mapToDouble(e->e.getCoinChange()).sum());*/
|
|
|
+ appUserCount.setRechargeGive(appUsersChargeList.stream().filter(e -> {
|
|
|
+ return e.getUid().equals(appUser.getUserid());
|
|
|
+ }).mapToDouble(e->null==e.getCoinGive()?0:e.getCoinGive().doubleValue()).sum());
|
|
|
|
|
|
appUserCount.setWithdrawalCommission(appUsersCashrecords.stream().filter(e -> e.getUid().equals(appUser.getUserid())).mapToDouble(e -> e.getService().doubleValue()).sum());
|
|
|
|