Commit d312d039 by zhangxingmin

push

parent c6baca14
......@@ -157,7 +157,7 @@ public class ApiCategoryServiceImpl implements ApiCategoryService {
//当前层级是第一级
return 1;
}
Category category = iCategoryService.queryOne(CategoryDto.builder().pid(pid).build());
Category category = iCategoryService.queryOne(CategoryDto.builder().categoryBizId(pid).build());
return category.getLevel() + 1;
}
......
......@@ -54,6 +54,6 @@ public class CategoryServiceImpl extends ServiceImpl<CategoryMapper, Category> i
*/
@Override
public Category queryOne(CategoryDto dto) {
return this.getOne(new LambdaQueryWrapper<Category>().eq(Category::getPid,dto.getPid()));
return this.getOne(new LambdaQueryWrapper<Category>().eq(Category::getCategoryBizId,dto.getPid()));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment