ProductMapper.java 700 Bytes
Newer Older
licc's avatar
licc committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
package cn.wisenergy.mapper;

import cn.wisenergy.model.app.ProductInfo;
import org.apache.ibatis.annotations.Param;

/**
 * @author 86187
 */
public interface ProductMapper {
    /**
     * 添加产品认证信息
     *
     * @param productInfo 产品认证信息
     * @return 1
     */
    int add(ProductInfo productInfo);

    /**
     * 编辑产品认证信息
     *
     * @param productInfo 产品认证信息
     * @return 1
     */
    int edit(ProductInfo productInfo);

    /**
     * 根据批次号获取产品认证信息
     * @param batchNumber 批次号
     * @return 产品认证信息
     */
    ProductInfo getByBatchNumber(@Param("batchNumber") String batchNumber);
}