接口 InsertListMapper<T>

  • 类型参数:
    T - 不能为空

    public interface InsertListMapper<T>
    通用Mapper接口,特殊方法,批量插入,支持批量插入的数据库都可以使用,例如mysql,h2等
    从以下版本开始:
    3.5.0
    作者:
    liuzh
    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型 方法 说明
      int insertList​(List<? extends T> recordList)
      批量插入,支持批量插入的数据库可以使用,例如MySQL,H2等
    • 方法详细资料

      • insertList

        @InsertProvider(type=InsertListProvider.class,
                        method="dynamicSQL")
        int insertList​(List<? extends T> recordList)
        批量插入,支持批量插入的数据库可以使用,例如MySQL,H2等

        不支持主键策略,插入前需要设置好主键的值

        特别注意:2018-04-22 后,该方法支持 @KeySql 注解的 genId 方式

        参数:
        recordList -
        返回: