admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/jd/JDGoodsClassMapper.java
@@ -1,45 +1,45 @@
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);
}