|
@@ -96,8 +96,11 @@ public class GameGiftServiceImpl extends ServiceImpl<GameGiftMapper, GameGift> i
|
|
|
.stream()
|
|
|
.map(item -> {
|
|
|
GameDTO game = gameService.getById(item.getParentGameId());
|
|
|
+ GameDTO superGame = gameService.getById(item.getSuperGameId());
|
|
|
return GameGiftListVO.builder()
|
|
|
.id(item.getId())
|
|
|
+ .superGameId(item.getSuperGameId())
|
|
|
+ .superGameName(null == superGame ? null:superGame.getName())
|
|
|
.parentGameId(item.getParentGameId())
|
|
|
.parentGameName(null == game ? null : game.getName())
|
|
|
.giftName(item.getGiftName())
|
|
@@ -131,8 +134,11 @@ public class GameGiftServiceImpl extends ServiceImpl<GameGiftMapper, GameGift> i
|
|
|
.eq(GameGift::getIsDelete, 0))
|
|
|
.convert(item -> {
|
|
|
GameDTO game = gameService.getById(item.getParentGameId());
|
|
|
+ GameDTO superGame = gameService.getById(item.getSuperGameId());
|
|
|
return GameGiftListVO.builder()
|
|
|
.id(item.getId())
|
|
|
+ .superGameId(item.getSuperGameId())
|
|
|
+ .superGameName(null == superGame ? null:superGame.getName())
|
|
|
.parentGameId(item.getParentGameId())
|
|
|
.parentGameName(null == game ? null : game.getName())
|
|
|
.giftName(item.getGiftName())
|