public class JpowerServiceImpl<M extends JpowerBaseMapper<T>,T extends BaseEntity>
extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T>
| 构造器和说明 |
|---|
JpowerServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
addBatchSomeColumn(List<T> entityList)
批量新增指定列
|
<V> List<V> |
listConver(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper,
Function<T,V> function) |
boolean |
removeReal(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper)
根据 entity 条件,真实删除记录
|
boolean |
removeRealById(Serializable id) |
boolean |
removeRealByIds(Collection<? extends Serializable> idList)
真实删除(根据ID 批量删除)
|
boolean |
removeRealByMap(Map<String,Object> columnMap)
根据 columnMap 条件,真实删除记录
|
boolean |
save(T entity) |
boolean |
saveBatch(Collection<T> entityList,
int batchSize) |
boolean |
saveOrUpdate(T entity) |
boolean |
saveOrUpdateBatch(Collection<T> entityList,
int batchSize) |
<E extends Serializable> |
tree(com.baomidou.mybatisplus.core.conditions.Wrapper<T> treeWrapper) |
boolean |
update(T entity,
com.baomidou.mybatisplus.core.conditions.Wrapper<T> updateWrapper) |
boolean |
updateAllById(T entity)
根据 ID 更新所有列
|
boolean |
updateBatchById(Collection<T> entityList) |
boolean |
updateById(T entity) |
closeSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getOneOpt, getSqlSessionFactory, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, sqlSessionBatch, sqlStatement, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, count, exists, getById, getOne, 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, removeById, removeByIds, removeByMap, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, updatepublic boolean save(T entity)
public boolean saveBatch(Collection<T> entityList, int batchSize)
saveBatch 在接口中 com.baomidou.mybatisplus.extension.service.IService<T extends BaseEntity>saveBatch 在类中 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M extends JpowerBaseMapper<T>,T extends BaseEntity>public boolean saveOrUpdate(T entity)
saveOrUpdate 在接口中 com.baomidou.mybatisplus.extension.service.IService<T extends BaseEntity>saveOrUpdate 在类中 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M extends JpowerBaseMapper<T>,T extends BaseEntity>public boolean saveOrUpdateBatch(Collection<T> entityList, int batchSize)
saveOrUpdateBatch 在接口中 com.baomidou.mybatisplus.extension.service.IService<T extends BaseEntity>saveOrUpdateBatch 在类中 com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M extends JpowerBaseMapper<T>,T extends BaseEntity>public boolean updateBatchById(Collection<T> entityList)
public boolean updateById(T entity)
public boolean update(T entity, com.baomidou.mybatisplus.core.conditions.Wrapper<T> updateWrapper)
public boolean removeRealById(Serializable id)
public boolean removeReal(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper)
queryWrapper - 实体包装类 QueryWrapperpublic boolean removeRealByIds(Collection<? extends Serializable> idList)
idList - 主键ID列表public boolean removeRealByMap(Map<String,Object> columnMap)
columnMap - 表字段 map 对象public boolean updateAllById(T entity)
entity - 实体public boolean addBatchSomeColumn(List<T> entityList)
entityList - 实体列表public <V> List<V> listConver(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper, Function<T,V> function)
public <E extends Serializable> List<cn.hutool.core.lang.tree.Tree<E>> tree(com.baomidou.mybatisplus.core.conditions.Wrapper<T> treeWrapper)
Copyright © 2024. All rights reserved.