|
@@ -390,7 +390,8 @@ public class IActiveDataServiceImpl implements IActiveDataService {
|
|
|
//拼接查询条件
|
|
|
StringBuilder trendDay = new StringBuilder(StringUtils.EMPTY);
|
|
|
trendDay.append("SELECT ");
|
|
|
- if ("ads_game_active_reg_day".equals(tableName)) {
|
|
|
+ if ("ads_game_active_reg_day".equals(tableName) ||
|
|
|
+ "game_ads_parent.ads_game_active_reg_day_parent".equals(tableName)) {
|
|
|
//90天数据
|
|
|
for (int day = 1; day <= 90; day++) {
|
|
|
trendDay.append("""
|
|
@@ -413,7 +414,8 @@ public class IActiveDataServiceImpl implements IActiveDataService {
|
|
|
SUM(IF(DATE_ADD(dt, INTERVAL 12 month) <= Local.now(), %sreg_num, 0))
|
|
|
) AS m12
|
|
|
""".formatted(type, type));
|
|
|
- } else if ("ads_game_active_order_day".equals(tableName)) {
|
|
|
+ } else if ("ads_game_active_order_day".equals(tableName) ||
|
|
|
+ "game_ads_parent.ads_game_active_role_day_parent".equals(tableName)) {
|
|
|
// 第N天新增付费用户数/第N天老活跃用户数/累计到第N天的付费用户数/累计到第N天的活跃人数
|
|
|
//90天数据
|
|
|
for (int day = 1; day <= 90; day++) {
|
|
@@ -474,7 +476,7 @@ public class IActiveDataServiceImpl implements IActiveDataService {
|
|
|
) AS m12
|
|
|
""".formatted(type, type, type, type));
|
|
|
}
|
|
|
- trendDay.append("FROM game_ads.");
|
|
|
+ trendDay.append("FROM ");
|
|
|
trendDay.append(tableName);
|
|
|
|
|
|
return trendDay.toString();
|