Package top.tangyh.basic.base.mapper
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 TypeMethodDescriptionintinsertBatchSomeColumn(List<T> entityList) 批量插入所有字段intupdateAllById(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
全量修改所有字段- Parameters:
entity- 实体- Returns:
- 修改数量
-
insertBatchSomeColumn
批量插入所有字段只测试过MySQL!只测试过MySQL!只测试过MySQL!
- Parameters:
entityList- 实体集合- Returns:
- 插入数量
-