|
@@ -132,9 +132,17 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
criA.where().andEquals("is_remove_game", dto.getIsRemoveGame());
|
|
criA.where().andEquals("is_remove_game", dto.getIsRemoveGame());
|
|
}
|
|
}
|
|
if (dto.getIsRemoveGameForSystem() != null) {
|
|
if (dto.getIsRemoveGameForSystem() != null) {
|
|
- //是否退游
|
|
|
|
|
|
+ //是否退游(系统判定)
|
|
criA.where().andEquals("is_remove_game_for_system", dto.getIsRemoveGameForSystem());
|
|
criA.where().andEquals("is_remove_game_for_system", dto.getIsRemoveGameForSystem());
|
|
}
|
|
}
|
|
|
|
+ if (dto.getIsWakeUp() != null) {
|
|
|
|
+ //是否唤醒
|
|
|
|
+ criA.where().andEquals("is_wake_up", dto.getIsWakeUp());
|
|
|
|
+ }
|
|
|
|
+ if (dto.getIsAddCorpWechat() != null) {
|
|
|
|
+ //是否添加企微
|
|
|
|
+ criA.where().andEquals("is_add_corp_wechat", dto.getIsAddCorpWechat());
|
|
|
|
+ }
|
|
//给充值时间查询条件
|
|
//给充值时间查询条件
|
|
Criteria criTodayAmount = Cnd.cri();
|
|
Criteria criTodayAmount = Cnd.cri();
|
|
//查询充值成功的
|
|
//查询充值成功的
|
|
@@ -179,6 +187,9 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
if ("null".equals(map.get("user_phone"))) {
|
|
if ("null".equals(map.get("user_phone"))) {
|
|
map.put("user_phone", null);
|
|
map.put("user_phone", null);
|
|
}
|
|
}
|
|
|
|
+ if ("null".equals(map.get("country"))) {
|
|
|
|
+ map.put("country", null);
|
|
|
|
+ }
|
|
return map;
|
|
return map;
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
|
|
|
|
@@ -195,13 +206,13 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
public Page<Map> getRoleCombatRanking(RoleCombatRankingDTO dto) {
|
|
public Page<Map> getRoleCombatRanking(RoleCombatRankingDTO dto) {
|
|
|
|
|
|
//是否查询合服数据(默认查询合服数据)
|
|
//是否查询合服数据(默认查询合服数据)
|
|
- Boolean isQueryMerge = true;
|
|
|
|
|
|
+ boolean isQueryMerge = true;
|
|
//如果不传值,查看的是原始服数据
|
|
//如果不传值,查看的是原始服数据
|
|
- if (dto.getIsMergeServer() == null || dto.getIsMergeServer() == Boolean.FALSE) {
|
|
|
|
|
|
+ if (dto.getIsMergeServer() == null || Boolean.FALSE.equals(dto.getIsMergeServer())) {
|
|
isQueryMerge = false;
|
|
isQueryMerge = false;
|
|
}
|
|
}
|
|
//是否查询超父游戏数据(默认查询超父游戏数据)
|
|
//是否查询超父游戏数据(默认查询超父游戏数据)
|
|
- Boolean isSuperParentGame = true;
|
|
|
|
|
|
+ boolean isSuperParentGame = true;
|
|
if (dto.getParentGameId() != null) {
|
|
if (dto.getParentGameId() != null) {
|
|
isSuperParentGame = false;
|
|
isSuperParentGame = false;
|
|
}
|
|
}
|
|
@@ -794,6 +805,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
a.os as os, -- 角色操作系统
|
|
a.os as os, -- 角色操作系统
|
|
b.role_level as role_level, -- 角色等级
|
|
b.role_level as role_level, -- 角色等级
|
|
b.combat_num as combat_num, -- 角色攻击力
|
|
b.combat_num as combat_num, -- 角色攻击力
|
|
|
|
+ a.country as country, -- 国家属性
|
|
IFNULL(c.amount, 0) as amount, -- 角色累计充值金额
|
|
IFNULL(c.amount, 0) as amount, -- 角色累计充值金额
|
|
IFNULL(c.amount_count, 0) as amount_count, -- 角色累计充值次数
|
|
IFNULL(c.amount_count, 0) as amount_count, -- 角色累计充值次数
|
|
ROUND(IF(c.amount_count > 0, c.amount / c.amount_count, 0), 2) as avg_amount, -- 平均单价
|
|
ROUND(IF(c.amount_count > 0, c.amount / c.amount_count, 0), 2) as avg_amount, -- 平均单价
|
|
@@ -882,6 +894,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
a.role_name,
|
|
a.role_name,
|
|
a.create_time,
|
|
a.create_time,
|
|
a.os,
|
|
a.os,
|
|
|
|
+ a.country,
|
|
ROW_NUMBER()over(partition by a.role_id , a.source_system order by a.create_time asc, a.user_id asc) as num
|
|
ROW_NUMBER()over(partition by a.role_id , a.source_system order by a.create_time asc, a.user_id asc) as num
|
|
FROM dm_game_order.t_game_user_role a
|
|
FROM dm_game_order.t_game_user_role a
|
|
LEFT JOIN dm_game_order.t_game_user b on a.source_system = b.source_system AND a.user_id = b.id
|
|
LEFT JOIN dm_game_order.t_game_user b on a.source_system = b.source_system AND a.user_id = b.id
|
|
@@ -1189,6 +1202,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
a.os as os, -- 角色操作系统
|
|
a.os as os, -- 角色操作系统
|
|
b.role_level as role_level, -- 角色等级
|
|
b.role_level as role_level, -- 角色等级
|
|
b.combat_num as combat_num, -- 角色攻击力
|
|
b.combat_num as combat_num, -- 角色攻击力
|
|
|
|
+ a.country as country, -- 国家属性
|
|
IFNULL(c.amount, 0) as amount, -- 角色累计充值金额
|
|
IFNULL(c.amount, 0) as amount, -- 角色累计充值金额
|
|
IFNULL(c.amount_count, 0) as amount_count, -- 角色累计充值次数
|
|
IFNULL(c.amount_count, 0) as amount_count, -- 角色累计充值次数
|
|
ROUND(IF(c.amount_count > 0, c.amount / c.amount_count, 0), 2) as avg_amount, -- 平均单价
|
|
ROUND(IF(c.amount_count > 0, c.amount / c.amount_count, 0), 2) as avg_amount, -- 平均单价
|
|
@@ -1277,6 +1291,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
a.role_name,
|
|
a.role_name,
|
|
a.create_time,
|
|
a.create_time,
|
|
a.os,
|
|
a.os,
|
|
|
|
+ a.country,
|
|
ROW_NUMBER()over(partition by a.role_id , a.source_system order by a.create_time asc, a.user_id asc) as num
|
|
ROW_NUMBER()over(partition by a.role_id , a.source_system order by a.create_time asc, a.user_id asc) as num
|
|
FROM dm_game_order.t_game_user_role a
|
|
FROM dm_game_order.t_game_user_role a
|
|
LEFT JOIN dm_game_order.t_game_user b on a.source_system = b.source_system AND a.user_id = b.id
|
|
LEFT JOIN dm_game_order.t_game_user b on a.source_system = b.source_system AND a.user_id = b.id
|
|
@@ -3197,6 +3212,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
a.role_id ,
|
|
a.role_id ,
|
|
b.role_name,
|
|
b.role_name,
|
|
a.role_level ,
|
|
a.role_level ,
|
|
|
|
+ IF(b.country = 'null',NULL,b.country) as country,
|
|
a.role_vip ,
|
|
a.role_vip ,
|
|
a.total_amount ,
|
|
a.total_amount ,
|
|
a.combat_num ,
|
|
a.combat_num ,
|
|
@@ -3232,6 +3248,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
a.role_id,
|
|
a.role_id,
|
|
a.role_name,
|
|
a.role_name,
|
|
a.role_level,
|
|
a.role_level,
|
|
|
|
+ a.country,
|
|
a.combat_num ,
|
|
a.combat_num ,
|
|
a.game_id ,
|
|
a.game_id ,
|
|
b.parent_game_id,
|
|
b.parent_game_id,
|
|
@@ -3271,6 +3288,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
a.role_vip ,
|
|
a.role_vip ,
|
|
a.total_amount ,
|
|
a.total_amount ,
|
|
a.combat_num ,
|
|
a.combat_num ,
|
|
|
|
+ IF(b.country = 'null',NULL,b.country) as country,
|
|
ROW_NUMBER()over(partition by a.source_system ,a.boss_server_id ,a.super_game_id order by a.combat_num desc) as rank_num
|
|
ROW_NUMBER()over(partition by a.source_system ,a.boss_server_id ,a.super_game_id order by a.combat_num desc) as rank_num
|
|
FROM (
|
|
FROM (
|
|
SELECT
|
|
SELECT
|
|
@@ -3293,6 +3311,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
|
|
a.role_name,
|
|
a.role_name,
|
|
a.role_level,
|
|
a.role_level,
|
|
a.combat_num ,
|
|
a.combat_num ,
|
|
|
|
+ a.country,
|
|
a.game_id ,
|
|
a.game_id ,
|
|
b.parent_game_id,
|
|
b.parent_game_id,
|
|
b.super_game_id ,
|
|
b.super_game_id ,
|