接口 SuperMapper<T>

类型参数:
T - 实体
所有超级接口:
com.baomidou.mybatisplus.core.mapper.BaseMapper<T>, com.baomidou.mybatisplus.core.mapper.Mapper<T>

public interface SuperMapper<T> extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>
基于MP的 BaseMapper 新增了2个方法: insertBatchSomeColumn、updateAllById
作者:
zuihou
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    批量插入所有字段
    int
    updateAllById(T entity)
    全量修改所有字段

    从接口继承的方法 com.baomidou.mybatisplus.core.mapper.BaseMapper

    delete, deleteBatchIds, deleteById, deleteById, deleteById, deleteByIds, deleteByIds, deleteByMap, exists, insert, insert, insert, insertOrUpdate, insertOrUpdate, insertOrUpdate, insertOrUpdate, insertOrUpdate, selectBatchIds, selectBatchIds, selectById, selectByIds, selectByIds, selectByMap, selectByMap, selectCount, selectList, selectList, selectList, selectList, selectMaps, selectMaps, selectMaps, selectMaps, selectMapsPage, selectObjs, selectObjs, selectOne, selectOne, selectPage, update, update, updateById, updateById, updateById
  • 方法详细资料

    • updateAllById

      int updateAllById(@Param("et") T entity)
      全量修改所有字段
      参数:
      entity - 实体
      返回:
      修改数量
    • insertBatchSomeColumn

      int insertBatchSomeColumn(List<T> entityList)
      批量插入所有字段

      只测试过MySQL!只测试过MySQL!只测试过MySQL!

      参数:
      entityList - 实体集合
      返回:
      插入数量