dos 2 月之前
父节点
当前提交
73049cd0b4

+ 10 - 10
game-business/src/main/java/com/game/business/domain/AppUserCount.java

@@ -39,52 +39,52 @@ public class AppUserCount {
     @Excel(name = "充值金额")
     @TableField(value = "recharge_amount")
     @ApiModelProperty(value = "充值金额")
-    private double rechargeAmount;
+    private Double rechargeAmount;
 
     @Excel(name = "充值手续费")
     @TableField(value = "recharge_commission")
     @ApiModelProperty(value = "充值手续费")
-    private double rechargeCommission;
+    private Double rechargeCommission;
 
     @Excel(name = "充值赠送(余额)")
     @TableField(value = "recharge_give")
     @ApiModelProperty(value = "充值赠送(余额)")
-    private double rechargeGive;
+    private Double rechargeGive;
 
     @Excel(name = "提现金额")
     @TableField(value = "withdrawal_amount")
     @ApiModelProperty(value = "提现金额")
-    private double withdrawalAmount;
+    private Double withdrawalAmount;
 
     @Excel(name = "提现手续费")
     @TableField(value = "withdrawal_commission")
     @ApiModelProperty(value = "提现手续费")
-    private double withdrawalCommission;
+    private Double withdrawalCommission;
 
     @Excel(name = "直播消费金额 (金币)")
     @TableField(value = "live_use_amount")
     @ApiModelProperty(value = "直播消费金额 (金币)")
-    private double liveUseAmount;
+    private Double liveUseAmount;
 
     @Excel(name = "直播佣金")
     @TableField(value = "live_commission")
     @ApiModelProperty(value = "直播佣金")
-    private double liveCommission;
+    private Double liveCommission;
 
     @Excel(name = "游戏-赢")
     @TableField(value = "game_win_amount")
     @ApiModelProperty(value = "游戏-赢")
-    private double gameWinAmount;
+    private Double gameWinAmount;
 
     @Excel(name = "游戏-输")
     @TableField(value = "game_lose_amount")
     @ApiModelProperty(value = "游戏-赢")
-    private double gameLoseAmount;
+    private Double gameLoseAmount;
 
     @Excel(name = "游戏佣金")
     @TableField(value = "game_commission")
     @ApiModelProperty(value = "游戏佣金")
-    private double gameCommission;
+    private Double gameCommission;
 
     @Excel(name = "创建时间")
     @TableField(value = "create_time")

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

@@ -78,34 +78,34 @@ public class AppUserCountServiceImpl extends ServiceImpl<AppUserCountMapper, App
             }*/
             if(!appUserCount.isUpdate()) {
                 //非全量更新
-                if (appUserCount.getRechargeAmount() > 0) {
+                if (appUserCount.getRechargeAmount() != null) {
                     appUserCount.setRechargeAmount(userCount.getRechargeAmount() + appUserCount.getRechargeAmount());
                 }
-                if (appUserCount.getRechargeCommission() > 0) {
+                if (appUserCount.getRechargeCommission() != null) {
                     appUserCount.setRechargeCommission(userCount.getRechargeCommission() + appUserCount.getRechargeCommission());
                 }
-                if (appUserCount.getRechargeGive() > 0) {
+                if (appUserCount.getRechargeGive() != null) {
                     appUserCount.setRechargeGive(userCount.getRechargeGive() + appUserCount.getRechargeGive());
                 }
-                if (appUserCount.getWithdrawalCommission() > 0) {
+                if (appUserCount.getWithdrawalCommission() != null) {
                     appUserCount.setWithdrawalAmount(userCount.getWithdrawalAmount() + appUserCount.getWithdrawalAmount());
                 }
-                if (appUserCount.getWithdrawalCommission() > 0) {
+                if (appUserCount.getWithdrawalCommission() != null) {
                     appUserCount.setWithdrawalCommission(userCount.getWithdrawalCommission() + appUserCount.getWithdrawalCommission());
                 }
-                if (appUserCount.getLiveUseAmount() > 0) {
+                if (appUserCount.getLiveUseAmount() != null) {
                     appUserCount.setLiveUseAmount(userCount.getLiveUseAmount() + appUserCount.getLiveUseAmount());
                 }
-                if (appUserCount.getLiveCommission() > 0) {
+                if (appUserCount.getLiveCommission() != null) {
                     appUserCount.setLiveCommission(userCount.getLiveCommission() + appUserCount.getLiveCommission());
                 }
-                if (appUserCount.getGameWinAmount() > 0) {
+                if (appUserCount.getGameWinAmount() != null) {
                     appUserCount.setGameWinAmount(userCount.getGameWinAmount() + appUserCount.getGameWinAmount());
                 }
-                if (appUserCount.getGameLoseAmount() > 0) {
+                if (appUserCount.getGameLoseAmount() != null) {
                     appUserCount.setGameLoseAmount(userCount.getGameLoseAmount() + appUserCount.getGameLoseAmount());
                 }
-                if (appUserCount.getGameCommission() > 0) {
+                if (appUserCount.getGameCommission() != null) {
                     appUserCount.setGameCommission(userCount.getGameCommission() + appUserCount.getGameCommission());
                 }
             }