|
|
package com.yohobuy.ufo.mapper.brand;
|
|
|
|
|
|
import com.yohobuy.ufo.model.brand.Brand;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
public interface BrandMapper {
|
|
|
|
|
|
/**
|
|
|
* 插入一条品牌记录
|
|
|
* @param brand
|
|
|
* @return
|
|
|
*/
|
|
|
int insertBrand(Brand brand);
|
|
|
|
|
|
/**
|
|
|
* 更新品牌状态
|
|
|
* @param id
|
|
|
* @param status
|
|
|
* @return
|
|
|
*/
|
|
|
int updateBrandStatus(@Param("id") Integer id, @Param("status") Integer status);
|
|
|
|
|
|
/**
|
|
|
* 更新一条品牌
|
|
|
* @param brand
|
|
|
* @return
|
|
|
*/
|
|
|
int updateBrand(Brand brand);
|
|
|
} |