|
|
|
@ -0,0 +1,37 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved.
|
|
|
|
|
*
|
|
|
|
|
* https://www.mall4j.com/
|
|
|
|
|
*
|
|
|
|
|
* 未经允许,不可做商业用途!
|
|
|
|
|
*
|
|
|
|
|
* 版权所有,侵权必究!
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package com.yami.shop.dao;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
|
|
import com.yami.shop.bean.model.Category;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 分类Mapper接口,定义了与分类相关的数据库操作
|
|
|
|
|
*
|
|
|
|
|
* @author lanhai
|
|
|
|
|
*/
|
|
|
|
|
public interface CategoryMapper extends BaseMapper<Category> {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据父级ID查询分类列表
|
|
|
|
|
* @param parentId 父级ID
|
|
|
|
|
* @return 分类列表
|
|
|
|
|
*/
|
|
|
|
|
List<Category> listByParentId(Long parentId);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据店铺ID查询分类列表
|
|
|
|
|
* @param shopId 店铺ID
|
|
|
|
|
* @return 分类列表
|
|
|
|
|
*/
|
|
|
|
|
List<Category> tableCategory(Long shopId);
|
|
|
|
|
}
|