package com.panzhihua.service_community.dao;
|
|
import java.util.List;
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.apache.ibatis.annotations.Mapper;
|
import com.panzhihua.service_community.entity.McsProductLabel;
|
|
/**
|
* (McsProductLabel)表数据库访问层
|
*
|
* @author makejava
|
* @since 2021-12-28 14:37:12
|
*/
|
@Mapper
|
public interface McsProductLabelDAO extends BaseMapper<McsProductLabel> {
|
|
/**
|
* 批量新增数据(MyBatis原生foreach方法)
|
*
|
* @param entities
|
* List<McsProductLabel> 实例对象列表
|
* @return 影响行数
|
*/
|
int insertBatch(@Param("entities") List<McsProductLabel> entities);
|
|
/**
|
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
|
*
|
* @param entities
|
* List<McsProductLabel> 实例对象列表
|
* @return 影响行数
|
* @throws org.springframework.jdbc.BadSqlGrammarException
|
* 入参是空List的时候会抛SQL语句错误的异常,请自行校验入参
|
*/
|
int insertOrUpdateBatch(@Param("entities") List<McsProductLabel> entities);
|
|
}
|