admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/GoodsSecondClassMapper.java
@@ -1,31 +1,31 @@
package com.yeshi.fanli.dao.mybatis;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass;
public interface GoodsSecondClassMapper extends BaseMapper<GoodsSecondClass>{
   /**
    * 根据上级分类ID查询
    * @param pid
    * @return
    */
   List<GoodsSecondClass> getByGoodsClassId(@Param("pid") Long pid);
   /**
    * 根据上级分类ID查询
    * @param pid
    * @return
    */
   List<GoodsSecondClass> getByNameAndGoodsClassId(@Param("start") long start, @Param("count") int count,
         @Param("pid") Long pid, @Param("name") String name);
   int countByNameAndGoodsClassId(@Param("pid") Long pid, @Param("name") String name);
package com.yeshi.fanli.dao.mybatis;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yeshi.fanli.dao.BaseMapper;
import com.yeshi.fanli.entity.bus.clazz.GoodsSecondClass;
public interface GoodsSecondClassMapper extends BaseMapper<GoodsSecondClass>{
   /**
    * 根据上级分类ID查询
    * @param pid
    * @return
    */
   List<GoodsSecondClass> getByGoodsClassId(@Param("pid") Long pid);
   /**
    * 根据上级分类ID查询
    * @param pid
    * @return
    */
   List<GoodsSecondClass> getByNameAndGoodsClassId(@Param("start") long start, @Param("count") int count,
         @Param("pid") Long pid, @Param("name") String name);
   int countByNameAndGoodsClassId(@Param("pid") Long pid, @Param("name") String name);
}