类 ComServiceImpl<M extends ComMapper<E>,E>
java.lang.Object
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,E>
cn.com.pism.mybatis.core.service.impl.ComServiceImpl<M,E>
- 所有已实现的接口:
ComService<E>,com.baomidou.mybatisplus.extension.service.IService<E>
public class ComServiceImpl<M extends ComMapper<E>,E>
extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,E>
implements ComService<E>
- 从以下版本开始:
- 24-08-25 00:34
- 作者:
- perccyking
-
字段概要
从类继承的字段 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
baseMapper, log从接口继承的字段 com.baomidou.mybatisplus.extension.service.IService
DEFAULT_BATCH_SIZE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明intbatchInsert(Collection<E> list) 批量保存intbatchUpdate(Collection<E> list) 批量按主键更新intbatchUpdateSelective(Collection<E> list) 批量按主键更新非空字段boolean新增或更新boolean新增或更新非空字段booleaninsertSelective(E e) 新增非空字段boolean插入一条记录(选择字段,策略插入)booleansaveBatch(Collection<E> entityList) 插入(批量)booleansaveBatch(Collection<E> entityList, int batchSize) 插入(批量)booleansaveOrUpdate(E entity) TableId 注解存在更新记录,否插入一条记录booleansaveOrUpdateBatch(Collection<E> entityList) 批量修改插入booleansaveOrUpdateBatch(Collection<E> entityList, int batchSize) 批量修改插入booleanupdateBatchById(Collection<E> entityList) 根据ID 批量更新booleanupdateBatchById(Collection<E> entityList, int batchSize) 根据ID 批量更新booleanupdateById(E entity) 根据 ID 选择修改boolean按主键更新非空值字段从类继承的方法 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
closeSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getMapperClass, getObj, getOne, getOneOpt, getSqlSessionFactory, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, retBool, sqlSessionBatch, sqlStatement从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.baomidou.mybatisplus.extension.service.IService
count, count, exists, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, getOneOpt, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, saveOrUpdate, update, update, update
-
构造器详细资料
-
ComServiceImpl
public ComServiceImpl()
-
-
方法详细资料
-
batchInsert
从接口复制的说明:ComService批量保存
by perccyking- 指定者:
batchInsert在接口中ComService<M extends ComMapper<E>>- 参数:
list- : 实体集合- 返回:
-
批量插入数量
引用无效
int
-
batchUpdate
从接口复制的说明:ComService批量按主键更新
by perccyking- 指定者:
batchUpdate在接口中ComService<M extends ComMapper<E>>- 参数:
list- : 实体集合- 返回:
-
批量更新数量
引用无效
int
-
batchUpdateSelective
从接口复制的说明:ComService批量按主键更新非空字段
by perccyking- 指定者:
batchUpdateSelective在接口中ComService<M extends ComMapper<E>>- 参数:
list- : 实体集合- 返回:
-
更新数量
引用无效
int
-
insertOrUpdateById
从接口复制的说明:ComService新增或更新
by perccyking- 指定者:
insertOrUpdateById在接口中ComService<M extends ComMapper<E>>- 参数:
e- : 实体- 返回:
-
是否成功
引用无效
boolean
-
insertOrUpdateSelective
从接口复制的说明:ComService新增或更新非空字段
by perccyking- 指定者:
insertOrUpdateSelective在接口中ComService<M extends ComMapper<E>>- 参数:
e- : 实体- 返回:
-
是否成功
引用无效
boolean
-
insertSelective
从接口复制的说明:ComService新增非空字段
by perccyking- 指定者:
insertSelective在接口中ComService<M extends ComMapper<E>>- 参数:
e- : 实体- 返回:
-
是否成功
引用无效
boolean
-
updateSelectiveByPrimaryKey
从接口复制的说明:ComService按主键更新非空值字段
by perccyking- 指定者:
updateSelectiveByPrimaryKey在接口中ComService<M extends ComMapper<E>>- 参数:
e- : 实体- 返回:
-
是否成功
引用无效
boolean
-
save
插入一条记录(选择字段,策略插入) -
saveBatch
@Transactional(rollbackFor=java.lang.Exception.class) public boolean saveBatch(Collection<E> entityList) 插入(批量) -
saveBatch
插入(批量) -
saveOrUpdateBatch
@Transactional(rollbackFor=java.lang.Exception.class) public boolean saveOrUpdateBatch(Collection<E> entityList) 批量修改插入 -
saveOrUpdateBatch
批量修改插入 -
updateById
根据 ID 选择修改 -
updateBatchById
@Transactional(rollbackFor=java.lang.Exception.class) public boolean updateBatchById(Collection<E> entityList) 根据ID 批量更新 -
updateBatchById
根据ID 批量更新 -
saveOrUpdate
TableId 注解存在更新记录,否插入一条记录
-