|  | @@ -7,7 +7,6 @@ import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 | 
	
		
			
				|  |  |  import com.zanxiang.erp.security.util.SecurityUtil;
 | 
	
		
			
				|  |  | -import com.zanxiang.game.module.base.pojo.enums.GameAuthEnum;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.module.base.pojo.enums.GameCategoryEnum;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.module.base.util.DateUtils;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.module.manage.pojo.dto.*;
 | 
	
	
		
			
				|  | @@ -121,14 +120,14 @@ public class GameUserRoleServiceImpl extends ServiceImpl<GameUserRoleMapper, Gam
 | 
	
		
			
				|  |  |          //游戏条件处理
 | 
	
		
			
				|  |  |          Map<Long, GameDTO> gameMap = gameService.gameCondition(gameTuple.getT2(), param.getCpId(), param.getGameId(), param.getGameCategoryId());
 | 
	
		
			
				|  |  |          //根据条件, 匹配不到游戏
 | 
	
		
			
				|  |  | -        if (gameMap != null && gameMap.isEmpty()) {
 | 
	
		
			
				|  |  | +        if (CollectionUtils.isEmpty(gameMap)) {
 | 
	
		
			
				|  |  |              return new Page<>();
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          //渠道获取
 | 
	
		
			
				|  |  |          Tuple2<List<Long>, List<AgentDTO>> tuple2 = agentService.getUserAgent(param.getAccountId(), param.getPitcherId(), param.getChannelId());
 | 
	
		
			
				|  |  |          List<Long> agentIdList = tuple2.getT1();
 | 
	
		
			
				|  |  |          List<AgentDTO> agentDTOList = tuple2.getT2();
 | 
	
		
			
				|  |  | -        if (Objects.equals(gameTuple.getT1(), GameAuthEnum.PITCHER.getValue()) && CollectionUtils.isEmpty(agentIdList)) {
 | 
	
		
			
				|  |  | +        if (CollectionUtils.isEmpty(agentIdList)) {
 | 
	
		
			
				|  |  |              return new Page<>();
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          //玩家条件处理
 | 
	
	
		
			
				|  | @@ -146,10 +145,10 @@ public class GameUserRoleServiceImpl extends ServiceImpl<GameUserRoleMapper, Gam
 | 
	
		
			
				|  |  |          Map<Long, AgentDTO> agentMap = agentDTOList.stream().collect(Collectors.toMap(AgentDTO::getId, Function.identity()));
 | 
	
		
			
				|  |  |          //执行查询
 | 
	
		
			
				|  |  |          return page(param.toPage(), new QueryWrapper<GameUserRole>().lambda()
 | 
	
		
			
				|  |  | +                .in(GameUserRole::getGameId, gameMap.keySet())
 | 
	
		
			
				|  |  |                  .in(CollectionUtils.isNotEmpty(userIdSet), GameUserRole::getUserId, userIdSet)
 | 
	
		
			
				|  |  |                  .in(CollectionUtils.isNotEmpty(serverIdList), GameUserRole::getServerId, serverIdList)
 | 
	
		
			
				|  |  |                  .like(Strings.isNotBlank(param.getRoleName()), GameUserRole::getRoleName, param.getRoleName())
 | 
	
		
			
				|  |  | -                .in(gameMap != null, GameUserRole::getGameId, gameMap != null ? gameMap.keySet() : null)
 | 
	
		
			
				|  |  |                  .eq(Strings.isNotBlank(param.getOs()), GameUserRole::getOs, param.getOs())
 | 
	
		
			
				|  |  |                  .gt(Objects.equals(param.getIsRecharge(), Boolean.TRUE), GameUserRole::getRechargeCount, 0)
 | 
	
		
			
				|  |  |                  .eq(Objects.equals(param.getIsRecharge(), Boolean.FALSE), GameUserRole::getRechargeCount, 0)
 | 
	
	
		
			
				|  | @@ -230,15 +229,14 @@ public class GameUserRoleServiceImpl extends ServiceImpl<GameUserRoleMapper, Gam
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          //游戏条件处理
 | 
	
		
			
				|  |  |          Map<Long, GameDTO> gameMap = gameService.gameCondition(gameTuple.getT2(), param.getCpId(), param.getGameId(), param.getGameCategoryId());
 | 
	
		
			
				|  |  | -        //根据条件, 匹配不到游戏
 | 
	
		
			
				|  |  | -        if (gameMap != null && gameMap.isEmpty()) {
 | 
	
		
			
				|  |  | +        if (CollectionUtils.isEmpty(gameMap)) {
 | 
	
		
			
				|  |  |              return;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          //渠道获取
 | 
	
		
			
				|  |  |          Tuple2<List<Long>, List<AgentDTO>> tuple2 = agentService.getUserAgent(param.getAccountId(), param.getPitcherId(), param.getChannelId());
 | 
	
		
			
				|  |  |          List<Long> agentIdList = tuple2.getT1();
 | 
	
		
			
				|  |  |          List<AgentDTO> agentDTOList = tuple2.getT2();
 | 
	
		
			
				|  |  | -        if (Objects.equals(gameTuple.getT1(), GameAuthEnum.PITCHER.getValue()) && CollectionUtils.isEmpty(agentIdList)) {
 | 
	
		
			
				|  |  | +        if (CollectionUtils.isEmpty(agentIdList)) {
 | 
	
		
			
				|  |  |              return;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          //玩家条件处理
 | 
	
	
		
			
				|  | @@ -258,9 +256,9 @@ public class GameUserRoleServiceImpl extends ServiceImpl<GameUserRoleMapper, Gam
 | 
	
		
			
				|  |  |          WebExcelUtil.httpExport(response, "玩家角色", GameUserRoleExcelVO.class, ((pageNumber, pageSize) -> {
 | 
	
		
			
				|  |  |              //查询订单
 | 
	
		
			
				|  |  |              return page(new Page<>(pageNumber, pageSize), new QueryWrapper<GameUserRole>().lambda()
 | 
	
		
			
				|  |  | +                    .in(GameUserRole::getGameId, gameMap.keySet())
 | 
	
		
			
				|  |  |                      .in(CollectionUtils.isNotEmpty(userIdSet), GameUserRole::getUserId, userIdSet)
 | 
	
		
			
				|  |  |                      .in(CollectionUtils.isNotEmpty(serverIdList), GameUserRole::getServerId, serverIdList)
 | 
	
		
			
				|  |  | -                    .in(gameMap != null, GameUserRole::getGameId, gameMap != null ? gameMap.keySet() : null)
 | 
	
		
			
				|  |  |                      .like(Strings.isNotBlank(param.getRoleName()), GameUserRole::getRoleName, param.getRoleName())
 | 
	
		
			
				|  |  |                      .eq(Objects.equals(param.getIsRecharge(), Boolean.FALSE), GameUserRole::getRechargeCount, 0)
 | 
	
		
			
				|  |  |                      .eq(Strings.isNotBlank(param.getOs()), GameUserRole::getOs, param.getOs())
 |