From ba79c32441cde5ab27db9b6bea578db34c30a379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=98=95?= Date: Fri, 10 Nov 2023 11:11:09 +0800 Subject: [PATCH] =?UTF-8?q?OCT=201.=20=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E8=A7=84=E8=8C=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/cmhi/gds/mapper/GameInfoMapper.java | 2 -- src/main/java/com/cmhi/gds/mapper/GameServerMapper.java | 1 - .../cmhi/gds/service/impl/GameDatabaseServiceServiceImpl.java | 4 +--- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/cmhi/gds/mapper/GameInfoMapper.java b/src/main/java/com/cmhi/gds/mapper/GameInfoMapper.java index 4c82cf0..4369b57 100644 --- a/src/main/java/com/cmhi/gds/mapper/GameInfoMapper.java +++ b/src/main/java/com/cmhi/gds/mapper/GameInfoMapper.java @@ -1,8 +1,6 @@ package com.cmhi.gds.mapper; import com.cmhi.gds.pojo.entry.GameInfo; -import com.cmhi.gds.pojo.entry.GameServer; -import org.apache.ibatis.annotations.Param; import java.util.List; diff --git a/src/main/java/com/cmhi/gds/mapper/GameServerMapper.java b/src/main/java/com/cmhi/gds/mapper/GameServerMapper.java index b73014e..0a943af 100644 --- a/src/main/java/com/cmhi/gds/mapper/GameServerMapper.java +++ b/src/main/java/com/cmhi/gds/mapper/GameServerMapper.java @@ -1,6 +1,5 @@ package com.cmhi.gds.mapper; -import com.cmhi.gds.pojo.entry.GameInfo; import com.cmhi.gds.pojo.entry.GameServer; import org.apache.ibatis.annotations.Param; diff --git a/src/main/java/com/cmhi/gds/service/impl/GameDatabaseServiceServiceImpl.java b/src/main/java/com/cmhi/gds/service/impl/GameDatabaseServiceServiceImpl.java index f1da076..424acfd 100644 --- a/src/main/java/com/cmhi/gds/service/impl/GameDatabaseServiceServiceImpl.java +++ b/src/main/java/com/cmhi/gds/service/impl/GameDatabaseServiceServiceImpl.java @@ -77,9 +77,7 @@ public class GameDatabaseServiceServiceImpl implements GameDatabaseServiceServic List allInfo = getGameTableItems(gameInfoIds); gameInfoIds.stream() .filter(v -> allInfo.stream().noneMatch(k -> k.getGameId().equals(v))) - .forEach(v -> { - ret.put(v, ErrorCode.ERR_NOSUCH_GAME); - }); + .forEach(v -> ret.put(v, ErrorCode.ERR_NOSUCH_GAME)); // 当前GAME所有已经存在的游戏信息 List gsList = gameDatabaseServiceManager.getGameServerInfoByGameInfoId(gameInfoIds);