Explorar el Código

:fix:流水监控bug,缺少维度默认值

zhangxianyu hace 1 año
padre
commit
b2ba64226e

+ 1 - 1
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/pojo/dto/FlowMonitorDTO.java

@@ -25,7 +25,7 @@ public class FlowMonitorDTO extends BasePage implements Serializable  {
      * 数据归因:1-子游戏维度; 2-父游戏维度
      */
     @ApiModelProperty(notes = "数据归因:1-子游戏维度; 2-父游戏维度")
-    private Long gameDimension;
+    private Long gameDimension = 1L;
     /**
      * 投手id
      */

+ 1 - 1
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/service/impl/GameDataServiceImpl.java

@@ -5232,7 +5232,7 @@ public class GameDataServiceImpl implements IGameDataService {
         //根据维度选择 子表父表
         String costTable = "game_ads.ads_recharge_monitoring_cost";
         String orderTable = "game_ads.ads_recharge_monitoring_amount";
-        if (dto.getGameDimension() != 1) {
+        if (dto.getGameDimension()!=null&&dto.getGameDimension() != 1) {
             costTable = "game_ads_parent.ads_recharge_monitoring_cost_parent";
             orderTable = "game_ads_parent.ads_recharge_monitoring_amount_parent";
         }