Interface SuperMapper<T>

Type Parameters:
T - 实体
All Superinterfaces:
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
Author:
zuihou
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    批量插入所有字段
    int
    updateAllById(T entity)
    全量修改所有字段

    Methods inherited from interface 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
  • Method Details

    • updateAllById

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

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

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

      Parameters:
      entityList - 实体集合
      Returns:
      插入数量