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);
|
|
|
}
|