public interface BrandMapper {
List<Brand> selectAll();
void addBrand(Brand brand);
void deleteById(Integer id);
void deleteByIds(@Param("ids")int[] ids);
void updateBrand(Brand brand);
List<Brand> selectByPage(@Param("begin") int begin, @Param("size") int pageSize);
int selectTotalCount();
int selectBrandTotalCount(Brand brand);
//参数要进行命名
List<Brand> selectBrand(@Param("begin") int begin, @Param("size") int pageSize,@Param("brand") Brand brand);
}
【后端数据访问层】
最新推荐文章于 2024-06-13 15:06:50 发布