
top.hmtools.mapper.plus.mysql.insert.IMysqlInsertMapperPlus Maven / Gradle / Ivy
package top.hmtools.mapper.plus.mysql.insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.annotation.RegisterMapper;
@RegisterMapper
public interface IMysqlInsertMapperPlus {
//############################### 增
/**
* 批量/单个 新增数据
*
注意:本方法不使用主键生成策略
* @param ts
* @return
*/
@InsertProvider(type = InsertMapperPlusProvider.class,method="dynamicSQL")
Integer addSome(@Param(value="ts")T... ts);
/**
* 批量/单个 忽略式新增数据
*
注意:本方法不使用主键生成策略
*
当数据库表中存在相同主键的数据时,则忽略该条记录,继续写入其它记录
* @param ts
* @return
*/
@InsertProvider(type = InsertMapperPlusProvider.class,method="dynamicSQL")
Integer addSomeIgnore(@Param(value="ts")T... ts) ;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy