| package cc.mrbird.febs.mall.service.impl; | 
|   | 
| import cc.mrbird.febs.mall.entity.MallGoodsCategory; | 
| import cc.mrbird.febs.mall.mapper.MallGoodsCategoryMapper; | 
| import cc.mrbird.febs.mall.service.IApiMallGoodsCategoryService; | 
| import cc.mrbird.febs.mall.vo.MallGoodsCategoryVo; | 
| import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; | 
| import lombok.RequiredArgsConstructor; | 
| import lombok.extern.slf4j.Slf4j; | 
| import org.springframework.stereotype.Service; | 
|   | 
| import java.util.List; | 
|   | 
| /** | 
|  * @author wzy | 
|  * @date 2021-09-16 | 
|  **/ | 
| @Slf4j | 
| @Service | 
| @RequiredArgsConstructor | 
| public class ApiMallGoodsCategoryServiceImpl extends ServiceImpl<MallGoodsCategoryMapper, MallGoodsCategory> implements IApiMallGoodsCategoryService { | 
|   | 
|   | 
|     @Override | 
|     public List<MallGoodsCategoryVo> findAllCategoryList() { | 
|         return this.baseMapper.selectAllCategoryList(); | 
|     } | 
|   | 
|     @Override | 
|     public List<MallGoodsCategory> findChildCategoryListById(Long id) { | 
|         return this.baseMapper.selectCategoryListByParentId(id); | 
|     } | 
|   | 
|     @Override | 
|     public List<MallGoodsCategory> findRecommendCategory() { | 
|         return this.baseMapper.selectRecommendCategoryList(); | 
|     } | 
| } |