Bladeren bron

:feat:修改角色充值排行榜sql

zhangxianyu 6 maanden geleden
bovenliggende
commit
b4b446d69f

+ 6 - 6
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/service/impl/RoleManageServiceImpl.java

@@ -3803,9 +3803,9 @@ public class RoleManageServiceImpl implements IRoleManageService {
                 			a.source_system as g_source_system,
                 			d.boss_server_id as g_boss_server_id,
                 			c.super_game_id as g_super_game_id,
-                			count(distinct IF(Date(NOW()) = dt,user_id,NULL)) as ba1_active_num, -- 今日活跃人数
-                			count(distinct IF(date_add(Date(NOW()),-1)=dt,user_id,NULL)) as ba2_active_num, -- 昨日活跃人数
-                			count(distinct IF(date_add(Date(NOW()),-2)=dt,user_id,NULL)) as ba3_active_num -- 前日活跃人数
+                			count(distinct IF(Date(NOW()) = dt,association_user_id,NULL)) as ba1_active_num, -- 今日活跃人数
+                			count(distinct IF(date_add(Date(NOW()),-1)=dt,association_user_id,NULL)) as ba2_active_num, -- 昨日活跃人数
+                			count(distinct IF(date_add(Date(NOW()),-2)=dt,association_user_id,NULL)) as ba3_active_num -- 前日活跃人数
                 		from dm_game_order.t_game_server a
                 		left join game_dw.dw_active_log b on a.source_system = b.source_system and a.server_id = b.server_id and a.game_id = b.game_id
                 		LEFT JOIN (
@@ -4124,9 +4124,9 @@ public class RoleManageServiceImpl implements IRoleManageService {
                 			a.source_system as g_source_system,
                 			d.boss_server_id as g_boss_server_id,
                 			c.super_game_id as g_super_game_id,
-                			count(distinct IF(Date(NOW()) = dt,user_id,NULL)) as ba1_active_num, -- 今日活跃人数
-                			count(distinct IF(date_add(Date(NOW()),-1)=dt,user_id,NULL)) as ba2_active_num, -- 昨日活跃人数
-                			count(distinct IF(date_add(Date(NOW()),-2)=dt,user_id,NULL)) as ba3_active_num -- 前日活跃人数
+                			count(distinct IF(Date(NOW()) = dt,association_user_id,NULL)) as ba1_active_num, -- 今日活跃人数
+                			count(distinct IF(date_add(Date(NOW()),-1)=dt,association_user_id,NULL)) as ba2_active_num, -- 昨日活跃人数
+                			count(distinct IF(date_add(Date(NOW()),-2)=dt,association_user_id,NULL)) as ba3_active_num -- 前日活跃人数
                 		from dm_game_order.t_game_server a
                 		left join game_dw.dw_active_log b on a.source_system = b.source_system and a.server_id = b.server_id and a.game_id = b.game_id
                 		LEFT JOIN (