|  | @@ -48,6 +48,10 @@ public class RoleManageServiceImpl implements IRoleManageService {
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      public Page<Map> getRoleRechargeRanking(RoleRechargeRankingDTO dto) {
 | 
	
		
			
				|  |  | +        //默认查询不合服的数据
 | 
	
		
			
				|  |  | +        if (dto.getIsMergeServer() == null) {
 | 
	
		
			
				|  |  | +            dto.setIsMergeServer(Boolean.FALSE);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          //创建查询条件 给主表使用
 | 
	
		
			
				|  |  |          Criteria criA = Cnd.cri();
 | 
	
		
			
				|  |  |          if (dto.getGameId() != null) {
 | 
	
	
		
			
				|  | @@ -66,9 +70,13 @@ public class RoleManageServiceImpl implements IRoleManageService {
 | 
	
		
			
				|  |  |          if (StringUtils.isNotBlank(dto.getRoleName())) {
 | 
	
		
			
				|  |  |              criA.where().andLike("role_name", dto.getRoleName());
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | -        if (CollectionUtils.isNotEmpty(dto.getServerIds())) {
 | 
	
		
			
				|  |  | -            //区服列表查询
 | 
	
		
			
				|  |  | -            criA.where().andInList("server_id", dto.getServerIds());
 | 
	
		
			
				|  |  | +        if (CollectionUtils.isNotEmpty(dto.getServerIds()) && !dto.getIsMergeServer()) {
 | 
	
		
			
				|  |  | +            //区服列表查询,不合服的区服
 | 
	
		
			
				|  |  | +            criA.where().andIn("server_id", dto.getServerIds().toArray(String[]::new));
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if (CollectionUtils.isNotEmpty(dto.getServerIds()) && dto.getIsMergeServer()) {
 | 
	
		
			
				|  |  | +            //合服区服列表查询
 | 
	
		
			
				|  |  | +            criA.where().andIn("merge_server_id", dto.getServerIds().toArray(String[]::new));
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          if (dto.getCreateRoleBeginDate() != null && dto.getCreateRoleEndDate() != null) {
 | 
	
		
			
				|  |  |              //角色创建时间
 | 
	
	
		
			
				|  | @@ -157,7 +165,10 @@ public class RoleManageServiceImpl implements IRoleManageService {
 | 
	
		
			
				|  |  |          //是否查询合服数据(默认查询不合服数据)
 | 
	
		
			
				|  |  |          Boolean isQueryMerge = dto.getIsMergeServer() != null && dto.getIsMergeServer();
 | 
	
		
			
				|  |  |          //是否查询超父游戏数据(默认查询父游戏数据)
 | 
	
		
			
				|  |  | -        Boolean isSuperParentGame = dto.getIsSuperParentGame() != null && dto.getIsSuperParentGame();
 | 
	
		
			
				|  |  | +        Boolean isSuperParentGame = false;
 | 
	
		
			
				|  |  | +        if (dto.getSuperParentGameId() != null) {
 | 
	
		
			
				|  |  | +            isSuperParentGame = true;
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          //查询区服相关数据
 | 
	
		
			
				|  |  |          if (isQueryMerge) {
 | 
	
		
			
				|  |  |              if (isSuperParentGame) {
 | 
	
	
		
			
				|  | @@ -2364,6 +2375,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
 | 
	
		
			
				|  |  |                  		boss_server_id,
 | 
	
		
			
				|  |  |                  		parent_game_id ,
 | 
	
		
			
				|  |  |                  		super_game_id ,
 | 
	
		
			
				|  |  | +                		dt,
 | 
	
		
			
				|  |  |                  		merge_time,
 | 
	
		
			
				|  |  |                  		role_id ,
 | 
	
		
			
				|  |  |                  		role_name,
 | 
	
	
		
			
				|  | @@ -2378,6 +2390,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
 | 
	
		
			
				|  |  |                  			boss_server_id,
 | 
	
		
			
				|  |  |                  			parent_game_id ,
 | 
	
		
			
				|  |  |                  			super_game_id ,
 | 
	
		
			
				|  |  | +                			MAX(`date`) as dt,
 | 
	
		
			
				|  |  |                  			MAX(merge_time) as merge_time ,
 | 
	
		
			
				|  |  |                  			role_id ,
 | 
	
		
			
				|  |  |                  			MAX(role_name) as role_name,
 | 
	
	
		
			
				|  | @@ -2444,6 +2457,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
 | 
	
		
			
				|  |  |                  		source_system ,
 | 
	
		
			
				|  |  |                  		server_id ,
 | 
	
		
			
				|  |  |                  		super_game_id ,
 | 
	
		
			
				|  |  | +                		dt,
 | 
	
		
			
				|  |  |                  		merge_time,
 | 
	
		
			
				|  |  |                  		role_id ,
 | 
	
		
			
				|  |  |                  		role_name,
 | 
	
	
		
			
				|  | @@ -2456,6 +2470,7 @@ public class RoleManageServiceImpl implements IRoleManageService {
 | 
	
		
			
				|  |  |                  			source_system ,
 | 
	
		
			
				|  |  |                  			server_id ,
 | 
	
		
			
				|  |  |                  			super_game_id ,
 | 
	
		
			
				|  |  | +                			MAX(`date`) as dt,
 | 
	
		
			
				|  |  |                  			MAX(merge_time) as merge_time ,
 | 
	
		
			
				|  |  |                  			role_id ,
 | 
	
		
			
				|  |  |                  			MAX(role_name) as role_name,
 |