Browse Source

投注去掉金币统计

dos 3 tháng trước cách đây
mục cha
commit
5dc71da918

+ 2 - 2
game-business/src/main/java/com/game/business/service/impl/AppUserCountServiceImpl.java

@@ -216,8 +216,8 @@ public class AppUserCountServiceImpl extends ServiceImpl<AppUserCountMapper, App
                 appUserCount.setUpdateTime(finalCurDate);
                 //游戏佣金 更新所有用户
                 appUserCount.setGameCommission(gameRecordCountList.stream().filter(e -> e.getUserId().equals(userId)).mapToDouble(e -> e.getCommission()).sum());
-                //游戏下注金额 更新当前下注用户
-                if(userId.equals(appGameBetting.getUserId())) {
+                //游戏下注金额 更新当前下注用户 (非金币)
+                if(userId.equals(appGameBetting.getUserId()) && appGameBetting.getBettingType().intValue() == 0) {
                     appUserCount.setGameBetting(appGameBetting.getBettingAmount());
                 }
                 this.createAppUserCount(appUserCount);