|
@@ -90,12 +90,12 @@ public class GameCategoryServiceImpl extends ServiceImpl<GameCategoryMapper, Gam
|
|
|
.like(GameCategory::getName, param.getLabelName())
|
|
|
.eq(GameCategory::getParentId, 0)
|
|
|
.eq(GameCategory::getType, GameCategoryEnum.GAME_LABEL.getCategoryType()));
|
|
|
+ //查询父标签, 但是却查不到, 直接返回空
|
|
|
+ if (categoryList.isEmpty()) {
|
|
|
+ return new Page<>(param.getPageNum(), param.getPageSize());
|
|
|
+ }
|
|
|
}
|
|
|
List<Long> parentIdList = categoryList.stream().map(GameCategory::getId).collect(Collectors.toList());
|
|
|
- //查询父标签, 但是却查不到, 直接返回空
|
|
|
- if (parentIdList.isEmpty()) {
|
|
|
- return new Page<>(param.getPageNum(), param.getPageSize());
|
|
|
- }
|
|
|
return page(param.toPage(), new QueryWrapper<GameCategory>().lambda()
|
|
|
//条件不为空没勾选父标签
|
|
|
.like(StringUtils.isNotBlank(param.getLabelName()) && !Objects.equals(param.getIsParent(), Boolean.TRUE),
|