| | |
| | | package com.yeshi.fanli.dao.mybatis.jd; |
| | | |
| | | import java.util.List; |
| | | |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import com.yeshi.fanli.dao.BaseMapper; |
| | | import com.yeshi.fanli.entity.jd.JDGoodsClass; |
| | | |
| | | public interface JDGoodsClassMapper extends BaseMapper<JDGoodsClass> { |
| | | |
| | | |
| | | /** |
| | | * 删除小于当前时间分类 |
| | | * @param level |
| | | * @param date |
| | | */ |
| | | void deleteByDate(@Param("level")Integer level, @Param("date")String date); |
| | | |
| | | |
| | | /** |
| | | * 查询各级分类 |
| | | * @param pid |
| | | * @return |
| | | */ |
| | | List<JDGoodsClass> getByLevel(@Param("level")Integer level); |
| | | |
| | | |
| | | /** |
| | | * 查询下级分类 |
| | | * @param pid |
| | | * @return |
| | | */ |
| | | List<JDGoodsClass> getByPid(@Param("pid")Integer pid); |
| | | |
| | | |
| | | /** |
| | | * 查询最新分类 |
| | | * @param level |
| | | * @param cid |
| | | * @return |
| | | */ |
| | | JDGoodsClass getByCid(@Param("level")Integer level, @Param("cid")Integer cid); |
| | | |
| | | package com.yeshi.fanli.dao.mybatis.jd;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import org.apache.ibatis.annotations.Param;
|
| | |
|
| | | import com.yeshi.fanli.dao.BaseMapper;
|
| | | import com.yeshi.fanli.entity.jd.JDGoodsClass;
|
| | |
|
| | | public interface JDGoodsClassMapper extends BaseMapper<JDGoodsClass> {
|
| | | |
| | | |
| | | /**
|
| | | * 删除小于当前时间分类
|
| | | * @param level
|
| | | * @param date
|
| | | */
|
| | | void deleteByDate(@Param("level")Integer level, @Param("date")String date);
|
| | | |
| | | |
| | | /**
|
| | | * 查询各级分类
|
| | | * @param pid
|
| | | * @return
|
| | | */
|
| | | List<JDGoodsClass> getByLevel(@Param("level")Integer level);
|
| | | |
| | | |
| | | /**
|
| | | * 查询下级分类
|
| | | * @param pid
|
| | | * @return
|
| | | */
|
| | | List<JDGoodsClass> getByPid(@Param("pid")Integer pid);
|
| | | |
| | | |
| | | /**
|
| | | * 查询最新分类
|
| | | * @param level
|
| | | * @param cid
|
| | | * @return
|
| | | */
|
| | | JDGoodsClass getByCid(@Param("level")Integer level, @Param("cid")Integer cid);
|
| | |
|
| | | } |