|  | @@ -63,11 +63,7 @@ public class GameGiftPackLinkLogServiceImpl extends ServiceImpl<GameGiftPackLink
 | 
											
												
													
														|  |          IPage<GameGiftPackLinkLogVO> result = new Page<>(linkLogIPage.getCurrent(), linkLogIPage.getSize(), linkLogIPage.getTotal());
 |  |          IPage<GameGiftPackLinkLogVO> result = new Page<>(linkLogIPage.getCurrent(), linkLogIPage.getSize(), linkLogIPage.getTotal());
 | 
											
												
													
														|  |          if (CollectionUtils.isNotEmpty(linkLogIPage.getRecords())) {
 |  |          if (CollectionUtils.isNotEmpty(linkLogIPage.getRecords())) {
 | 
											
												
													
														|  |              List<GameGiftPackLinkLog> records = linkLogIPage.getRecords();
 |  |              List<GameGiftPackLinkLog> records = linkLogIPage.getRecords();
 | 
											
												
													
														|  | -            List<String> serverIds = records.stream().map(GameGiftPackLinkLog::getServerId).distinct().collect(Collectors.toList());
 |  | 
 | 
											
												
													
														|  | -            Map<String, String> gameServerMap = gameServerService.list(new LambdaQueryWrapper<GameServer>()
 |  | 
 | 
											
												
													
														|  | -                    .in(GameServer::getServerId, serverIds)
 |  | 
 | 
											
												
													
														|  | -                    .eq(GameServer::getIsSourceServer, Boolean.TRUE)
 |  | 
 | 
											
												
													
														|  | -            ).stream().collect(Collectors.toMap(GameServer::getServerId, GameServer::getServerName));
 |  | 
 | 
											
												
													
														|  | 
 |  | +            Map<String, String> gameServerMap = this.getSourceGameServerByLinkId(param.getLinkId());
 | 
											
												
													
														|  |              result.setRecords(this.toVOBatch(records, gameServerMap));
 |  |              result.setRecords(this.toVOBatch(records, gameServerMap));
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |          return result;
 |  |          return result;
 | 
											
										
											
												
													
														|  | @@ -82,12 +78,24 @@ public class GameGiftPackLinkLogServiceImpl extends ServiceImpl<GameGiftPackLink
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 | 
											
												
													
														|  | -    public Map<String, String> getSourceGameServer(Long linkLogId) {
 |  | 
 | 
											
												
													
														|  | 
 |  | +    public Map<String, String> getSourceGameServerByLinkId(Long linkId) {
 | 
											
												
													
														|  | 
 |  | +        //查询访问日志
 | 
											
												
													
														|  | 
 |  | +        GameGiftPackLink giftPackLink = gameGiftPackLinkService.getById(linkId);
 | 
											
												
													
														|  | 
 |  | +        assert giftPackLink != null : "参数错误, 链接信息不存在";
 | 
											
												
													
														|  | 
 |  | +        return this.getSourceGameServerByGameId(giftPackLink.getGameId());
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    @Override
 | 
											
												
													
														|  | 
 |  | +    public Map<String, String> getSourceGameServerByLinkLogId(Long linkLogId) {
 | 
											
												
													
														|  |          //查询访问日志
 |  |          //查询访问日志
 | 
											
												
													
														|  |          GameGiftPackLinkLog gameGiftPackLinkLog = super.getById(linkLogId);
 |  |          GameGiftPackLinkLog gameGiftPackLinkLog = super.getById(linkLogId);
 | 
											
												
													
														|  |          assert gameGiftPackLinkLog != null : "参数错误, 链接访问日志信息不存在";
 |  |          assert gameGiftPackLinkLog != null : "参数错误, 链接访问日志信息不存在";
 | 
											
												
													
														|  | 
 |  | +        return this.getSourceGameServerByGameId(gameGiftPackLinkLog.getGameId());
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    private Map<String, String> getSourceGameServerByGameId(Long gameId) {
 | 
											
												
													
														|  |          //查询游戏信息
 |  |          //查询游戏信息
 | 
											
												
													
														|  | -        GameDTO gameDTO = gameService.getById(gameGiftPackLinkLog.getGameId());
 |  | 
 | 
											
												
													
														|  | 
 |  | +        GameDTO gameDTO = gameService.getById(gameId);
 | 
											
												
													
														|  |          assert gameDTO != null : "参数错误, 游戏信息不存在";
 |  |          assert gameDTO != null : "参数错误, 游戏信息不存在";
 | 
											
												
													
														|  |          //查询区服信息
 |  |          //查询区服信息
 | 
											
												
													
														|  |          return gameServerService.list(new LambdaQueryWrapper<GameServer>()
 |  |          return gameServerService.list(new LambdaQueryWrapper<GameServer>()
 |