M - mapperT - model@Validated public class BaseServiceImpl<M extends FaithBaseMapper<T>,T extends BaseEntity> extends com.baomidou.mybatisplus.extension.service.impl.ServiceImpl<M,T> implements BaseService<T>
| 限定符和类型 | 字段和说明 |
|---|---|
private javax.servlet.http.HttpServletRequest |
request
============================ REQUEST =================================================
|
private javax.servlet.http.HttpServletResponse |
response
============================ RESPONSE =================================================
|
| 构造器和说明 |
|---|
BaseServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
alwaysGetById(Serializable id)
根据 ID 查询
|
List<T> |
alwaysListBatchIds(Collection<? extends Serializable> idList)
查询(根据ID 批量查询)
|
Long |
alwaysSelectCount(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper)
根据 Wrapper 条件,查询总记录数
|
List<T> |
alwaysSelectList(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper)
根据 entity 条件,查询全部记录
|
T |
alwaysSelectOne(com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper,
boolean throwEx)
根据 entity 条件,查询一条记录
|
boolean |
alwaysUpdate(com.baomidou.mybatisplus.core.conditions.Wrapper<T> updateWrapper)
根据 whereEntity 条件,更新记录(但是不包含逻辑删除)
|
boolean |
alwaysUpdateSomeColumnById(T entity)
========================== insert/delete/update/delete ==========================
|
javax.servlet.http.HttpServletRequest |
getRequest()
获取request
|
javax.servlet.http.HttpServletResponse |
getResponse()
response
|
FaithUser |
getUser()
获取当前用户
|
closeSqlSession, currentMapperClass, currentModelClass, executeBatch, executeBatch, executeBatch, getBaseMapper, getEntityClass, getMap, getObj, getOne, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveOrUpdate, saveOrUpdateBatch, sqlSessionBatch, sqlStatement, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalwaysSelectOnecount, count, getBaseMapper, getById, getEntityClass, getMap, getObj, getOne, getOne, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, listByIds, listByMap, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveBatch, saveOrUpdate, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, update, update, update, updateBatchById, updateBatchById, updateById@Autowired private javax.servlet.http.HttpServletRequest request
@Autowired private javax.servlet.http.HttpServletResponse response
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public FaithUser getUser()
public boolean alwaysUpdateSomeColumnById(T entity)
alwaysUpdateSomeColumnById 在接口中 BaseService<T extends BaseEntity>entity - 实体public boolean alwaysUpdate(com.baomidou.mybatisplus.core.conditions.Wrapper<T> updateWrapper)
BaseServicealwaysUpdate 在接口中 BaseService<T extends BaseEntity>updateWrapper - 实体对象封装操作类(可以为 null,里面的 entity 用于生成 where 语句)public T alwaysGetById(Serializable id)
BaseServicealwaysGetById 在接口中 BaseService<T extends BaseEntity>id - 主键IDpublic List<T> alwaysListBatchIds(Collection<? extends Serializable> idList)
BaseServicealwaysListBatchIds 在接口中 BaseService<T extends BaseEntity>idList - 主键ID列表(不能为 null 以及 empty)public T alwaysSelectOne(@Param(value="ew") com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper, boolean throwEx)
BaseServicealwaysSelectOne 在接口中 BaseService<T extends BaseEntity>queryWrapper - 实体对象封装操作类(可以为 null)throwEx - true抛异常 false不抛public Long alwaysSelectCount(@Param(value="ew") com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper)
BaseServicealwaysSelectCount 在接口中 BaseService<T extends BaseEntity>queryWrapper - 实体对象封装操作类(可以为 null)public List<T> alwaysSelectList(@Param(value="ew") com.baomidou.mybatisplus.core.conditions.Wrapper<T> queryWrapper)
BaseServicealwaysSelectList 在接口中 BaseService<T extends BaseEntity>queryWrapper - 实体对象封装操作类(可以为 null)Copyright © 2023. All rights reserved.