|
@@ -59,7 +59,7 @@ public class GameServiceImpl extends ServiceImpl<GameMapper, Game> implements IG
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
public Boolean gameAddOrUpdate(GameAddParam param) {
|
|
|
//游戏分类处理
|
|
|
- String gameTags = this.getGameTags(param.getClassifyList());
|
|
|
+ String gameTags = this.getGameTags(param.getTagIdList());
|
|
|
//主键id
|
|
|
Long id = param.getId();
|
|
|
Game game;
|
|
@@ -166,8 +166,8 @@ public class GameServiceImpl extends ServiceImpl<GameMapper, Game> implements IG
|
|
|
gameListVO.setCategoryName(GameCategoryEnum.getNameByCategory(gameListVO.getCategory()));
|
|
|
}
|
|
|
//游戏分类
|
|
|
- if (Strings.isNotBlank(gameListVO.getTags())) {
|
|
|
- List<Long> tagIdList = Arrays.stream(gameListVO.getTags().split(","))
|
|
|
+ if (Strings.isNotBlank(game.getTags())) {
|
|
|
+ List<Long> tagIdList = Arrays.stream(game.getTags().split(","))
|
|
|
.map(Long::parseLong).collect(Collectors.toList());
|
|
|
gameListVO.setTagNameList(gameTagService.listByIds(tagIdList).stream()
|
|
|
.map(GameTag::getName).collect(Collectors.toList()));
|