|
@@ -1,7 +1,5 @@
|
|
|
package com.zanxiang.game.data.serve.service.impl;
|
|
|
|
|
|
-import java.util.List;
|
|
|
-
|
|
|
import com.google.common.base.CaseFormat;
|
|
|
import com.zanxiang.game.data.serve.component.DataPowerComponent;
|
|
|
import com.zanxiang.game.data.serve.pojo.dto.*;
|
|
@@ -24,11 +22,9 @@ import org.nutz.dao.sql.Criteria;
|
|
|
import org.nutz.dao.sql.Sql;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
-import org.springframework.util.StopWatch;
|
|
|
import reactor.util.function.Tuple2;
|
|
|
import reactor.util.function.Tuples;
|
|
|
|
|
|
-import javax.annotation.Resource;
|
|
|
import java.lang.reflect.Field;
|
|
|
import java.lang.reflect.Modifier;
|
|
|
import java.math.BigDecimal;
|
|
@@ -829,7 +825,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)*100,'/',round(ifnull((d.new_da%d_num + d.old_da%d_num) / d.new_da%d_total_num,0)*100,4),'/',IFNULL(c.da%d_reg_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_num + d.old_da%d_num) / d.new_da%d_total_num,0),4),'/',IFNULL(c.da%d_reg_num,0),'/',IFNULL(c.da%d_num,0)) as da_str%d,
|
|
|
""".formatted(i, i, i, i, i, i, i, i));
|
|
|
|
|
|
}
|
|
@@ -843,7 +839,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)*100) ,4),0),'/',ifnull(round(((SUM(d.new_da%d_num) + SUM(d.old_da%d_num)) / SUM(d.new_da%d_total_num))*100,4),0),'/',IFNULL(SUM(c.da%d_reg_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_num) + SUM(d.old_da%d_num)) / SUM(d.new_da%d_total_num)),4),0),'/',IFNULL(SUM(c.da%d_reg_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();
|