|
@@ -234,7 +234,7 @@ public class GameServiceImpl extends ServiceImpl<GameMapper, Game> implements IG
|
|
|
}
|
|
|
return super.list(new LambdaQueryWrapper<Game>()
|
|
|
.in(!SecurityUtil.isAdmin(), Game::getId, tuple2.getT2())
|
|
|
- .select(Game::getId, Game::getName, Game::getCategory))
|
|
|
+ .select(Game::getId, Game::getName, Game::getCategory, Game::getSuperGameId))
|
|
|
.stream()
|
|
|
.map(game -> BeanUtil.copy(game, GameChoiceVO.class))
|
|
|
.collect(Collectors.toList());
|
|
@@ -251,11 +251,11 @@ public class GameServiceImpl extends ServiceImpl<GameMapper, Game> implements IG
|
|
|
@Override
|
|
|
public Map<Long, GameDTO> gameCondition(List<Long> gameIdList, Long cpId, Long gameId, Long gameCategoryId) {
|
|
|
List<GameDTO> gameList = super.list(new LambdaQueryWrapper<Game>()
|
|
|
+ .select(Game::getId, Game::getCpId, Game::getName, Game::getCategory, Game::getSuperGameId)
|
|
|
.eq(cpId != null, Game::getCpId, cpId)
|
|
|
.in(CollectionUtils.isNotEmpty(gameIdList), Game::getId, gameIdList)
|
|
|
.eq(gameId != null, Game::getId, gameId)
|
|
|
.eq(gameCategoryId != null, Game::getCategory, gameCategoryId)
|
|
|
- .select(Game::getId, Game::getCpId, Game::getName, Game::getCategory)
|
|
|
).stream().map(game -> BeanUtil.copy(game, GameDTO.class)).collect(Collectors.toList());
|
|
|
if (CollectionUtils.isEmpty(gameList)) {
|
|
|
return Collections.emptyMap();
|