|
@@ -830,6 +830,7 @@ public class GameServerServiceImpl implements IGameServerService {
|
|
|
a.server_id,
|
|
|
a.server_name,
|
|
|
a.dt,
|
|
|
+ datediff(Date(now()),a.dt) as days,
|
|
|
a.parent_game_id,
|
|
|
a.parent_game_classify,
|
|
|
a.parent_game_name,
|
|
@@ -867,7 +868,7 @@ public class GameServerServiceImpl implements IGameServerService {
|
|
|
StringBuilder sql = new StringBuilder(StringUtils.EMPTY);
|
|
|
for (int i = 1; i <= 90; i++) {
|
|
|
sql.append("""
|
|
|
- concat(ifnull(round(c.da%d_active_num / e.new_da%d_total_num,4),0),'/',round(ifnull((d.new_da%d_num + d.old_da%d_num) / d.new_da%d_total_num,0),4),'/',IFNULL(c.da%d_role_num,0),'/',IFNULL(c.da%d_num,0)) as da_str%d,
|
|
|
+ concat(ifnull(round(c.da%d_active_num / e.new_da%d_total_num,4),0),'/',round(ifnull(d.new_da%d_total_num/(d.new_da%d_num + d.old_da%d_num) ,0),4),'/',IFNULL(c.da%d_role_num,0),'/',IFNULL(c.da%d_num,0)) as da_str%d,
|
|
|
""".formatted(i, i, i, i, i, i, i, i));
|
|
|
|
|
|
}
|
|
@@ -881,7 +882,7 @@ public class GameServerServiceImpl implements IGameServerService {
|
|
|
StringBuilder sql = new StringBuilder(StringUtils.EMPTY);
|
|
|
for (int i = 1; i <= 90; i++) {
|
|
|
sql.append("""
|
|
|
- concat(ifnull(round(SUM(c.da%d_active_num) / SUM(e.new_da%d_total_num) ,4),0),'/',ifnull(round(((SUM(d.new_da%d_num) + SUM(d.old_da%d_num)) / SUM(d.new_da%d_total_num)),4),0),'/',IFNULL(SUM(c.da%d_role_num),0),'/',IFNULL(SUM(c.da%d_num),0)) as da_str%d,
|
|
|
+ concat(ifnull(round(SUM(c.da%d_active_num) / SUM(e.new_da%d_total_num) ,4),0),'/',ifnull(round(SUM(d.new_da%d_total_num)/((SUM(d.new_da%d_num) + SUM(d.old_da%d_num))),4),0),'/',IFNULL(SUM(c.da%d_role_num),0),'/',IFNULL(SUM(c.da%d_num),0)) as da_str%d,
|
|
|
""".formatted(i, i, i, i, i, i, i, i));
|
|
|
}
|
|
|
return sql.toString();
|