SmartProductMapper.java 1.47 KB
package com.glsx.smart.mapper;

import java.util.List;
import com.glsx.smart.entity.SmartProduct;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>Description:
 * <p>Project: chejia-smart
 *
 * @author wbh
 * @date 2021-03-15
 */

@Mapper
public interface SmartProductMapper extends tk.mybatis.mapper.common.Mapper<SmartProduct> {
    //long countByExample(SmartProductExample example);
    //
    //int deleteByExample(SmartProductExample example);
    //
    //int deleteByPrimaryKey(Long id);
    //
    //@Override
    //int insert(SmartProduct record);

    int insertOrUpdate(SmartProduct record);

    int insertOrUpdateSelective(SmartProduct record);

    //@Override
    //int insertSelective(SmartProduct record);
    //
    //List<SmartProduct> selectByExample(SmartProductExample example);
    //
    //SmartProduct selectByPrimaryKey(Long id);
    //
    //int updateByExampleSelective(@Param("record") SmartProduct record,
    //        @Param("example") SmartProductExample example);
    //
    //int updateByExample(@Param("record") SmartProduct record,
    //        @Param("example") SmartProductExample example);
    //
    //@Override
    //int updateByPrimaryKeySelective(SmartProduct record);
    //
    //@Override
    //int updateByPrimaryKey(SmartProduct record);

    int updateBatch(List<SmartProduct> list);

    int updateBatchSelective(List<SmartProduct> list);

    int batchInsert(@Param("list") List<SmartProduct> list);
}