|
@@ -8,6 +8,7 @@ import com.game.business.domain.*;
|
|
import com.game.business.service.*;
|
|
import com.game.business.service.*;
|
|
import com.game.common.constant.CacheConstants;
|
|
import com.game.common.constant.CacheConstants;
|
|
import com.game.common.constant.finance.FinTranType1;
|
|
import com.game.common.constant.finance.FinTranType1;
|
|
|
|
+import com.game.common.constant.finance.FinTranType2;
|
|
import com.game.common.constant.finance.FinTranType3;
|
|
import com.game.common.constant.finance.FinTranType3;
|
|
import com.game.common.core.domain.HttpRet;
|
|
import com.game.common.core.domain.HttpRet;
|
|
import com.game.common.core.redis.RedisCache;
|
|
import com.game.common.core.redis.RedisCache;
|
|
@@ -165,12 +166,13 @@ public class AppUserCountTask {
|
|
).mapToDouble(FinTranRecord::getCoinChange).sum());
|
|
).mapToDouble(FinTranRecord::getCoinChange).sum());
|
|
//直播收益
|
|
//直播收益
|
|
List<Integer> profitTypeList = Arrays.asList(
|
|
List<Integer> profitTypeList = Arrays.asList(
|
|
- FinTranType3.CONSUM_LIVE_ROOM_REWARD.getType()
|
|
|
|
|
|
+ FinTranType3.RECOMMEND_ADD_AMOUNT.getType()
|
|
);
|
|
);
|
|
appUserCount.setLiveProfit(finTranRecordList.stream().filter(e->
|
|
appUserCount.setLiveProfit(finTranRecordList.stream().filter(e->
|
|
e.getUid().equals(appUser.getUserid()) &&
|
|
e.getUid().equals(appUser.getUserid()) &&
|
|
profitTypeList.contains(e.getTranType3()) &&
|
|
profitTypeList.contains(e.getTranType3()) &&
|
|
- FinTranType1.U_Income_Coin.getType() == e.getTranType1().intValue()
|
|
|
|
|
|
+ FinTranType1.U_Income_Coin.getType() == e.getTranType1().intValue()&&
|
|
|
|
+ FinTranType2.REWARD_Income.getType() == e.getTranType2().intValue()
|
|
).mapToDouble(FinTranRecord::getCoinChange).sum());
|
|
).mapToDouble(FinTranRecord::getCoinChange).sum());
|
|
appUserCountService.createAppUserCount(appUserCount);
|
|
appUserCountService.createAppUserCount(appUserCount);
|
|
});
|
|
});
|
|
@@ -289,12 +291,13 @@ public class AppUserCountTask {
|
|
).mapToDouble(FinTranRecord::getCoinChange).sum());
|
|
).mapToDouble(FinTranRecord::getCoinChange).sum());
|
|
//直播收益
|
|
//直播收益
|
|
List<Integer> profitTypeList = Arrays.asList(
|
|
List<Integer> profitTypeList = Arrays.asList(
|
|
- FinTranType3.CONSUM_LIVE_ROOM_REWARD.getType()
|
|
|
|
|
|
+ FinTranType3.RECOMMEND_ADD_AMOUNT.getType()
|
|
);
|
|
);
|
|
appUserCount.setLiveProfit(finTranRecordList.stream().filter(e->
|
|
appUserCount.setLiveProfit(finTranRecordList.stream().filter(e->
|
|
e.getUid().equals(appUser.getUserid()) &&
|
|
e.getUid().equals(appUser.getUserid()) &&
|
|
profitTypeList.contains(e.getTranType3()) &&
|
|
profitTypeList.contains(e.getTranType3()) &&
|
|
- FinTranType1.U_Income_Coin.getType() == e.getTranType1().intValue()
|
|
|
|
|
|
+ FinTranType1.U_Income_Coin.getType() == e.getTranType1().intValue()&&
|
|
|
|
+ FinTranType2.REWARD_Income.getType() == e.getTranType2().intValue()
|
|
).mapToDouble(FinTranRecord::getCoinChange).sum());
|
|
).mapToDouble(FinTranRecord::getCoinChange).sum());
|
|
appUserCount.setUpdate(true);
|
|
appUserCount.setUpdate(true);
|
|
appUserCountService.createAppUserCount(appUserCount);
|
|
appUserCountService.createAppUserCount(appUserCount);
|