跳过导航链接
B C D E F G H I M O P Q R S T U V 

B

BaseController<Entity> - top.tangyh.basic.base.controller中的接口
基础接口
baseService - 类 中的变量top.tangyh.basic.base.controller.SuperSimpleController
 
buildPage() - 类 中的方法top.tangyh.basic.base.request.PageParams
构建分页对象
buildPage(Class<?>) - 类 中的方法top.tangyh.basic.base.request.PageParams
构建分页对象 支持多个字段排序,用法: eg.1, 参数:{order:"name,id", order:"descending,ascending" }。

C

cacheKeyBuilder() - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
缓存key 构造器
cacheOps - 类 中的变量top.tangyh.basic.base.service.SuperCacheServiceImpl
 
clearCache() - 类 中的方法top.tangyh.basic.base.controller.SuperCacheController
清理缓存
clearCache() - 接口 中的方法top.tangyh.basic.base.service.SuperCacheService
清理缓存
clearCache() - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 

D

delCache(Serializable...) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
delCache(Collection<?>) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
delCache(T) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
delete(List<Id>) - 接口 中的方法top.tangyh.basic.base.controller.DeleteController
删除方法
DeleteController<Entity,Id extends Serializable> - top.tangyh.basic.base.controller中的接口
删除Controller

E

enhanceExportParams(ExportParams) - 接口 中的方法top.tangyh.basic.base.controller.PoiController
子类增强ExportParams
exportExcel(PageParams<PageQuery>, HttpServletRequest, HttpServletResponse) - 接口 中的方法top.tangyh.basic.base.controller.PoiController
导出Excel

F

fail(String) - 接口 中的方法top.tangyh.basic.base.controller.BaseController
失败返回
fail(String, Object...) - 接口 中的方法top.tangyh.basic.base.controller.BaseController
失败返回
fail(int, String) - 接口 中的方法top.tangyh.basic.base.controller.BaseController
失败返回
fail(BaseExceptionCode) - 接口 中的方法top.tangyh.basic.base.controller.BaseController
失败返回
fail(BizException) - 接口 中的方法top.tangyh.basic.base.controller.BaseController
失败返回
fail(Throwable) - 接口 中的方法top.tangyh.basic.base.controller.BaseController
失败返回
findByIds(Collection<? extends Serializable>, Function<Collection<? extends Serializable>, Collection<T>>) - 接口 中的方法top.tangyh.basic.base.service.SuperCacheService
可能会缓存穿透
findByIds(Collection<? extends Serializable>, Function<Collection<? extends Serializable>, Collection<T>>) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
findExportList(PageParams<PageQuery>) - 接口 中的方法top.tangyh.basic.base.controller.PoiController
查询待导出的数据, 子类可以重写

G

get(Id) - 接口 中的方法top.tangyh.basic.base.controller.QueryController
查询
get(Id) - 类 中的方法top.tangyh.basic.base.controller.SuperCacheController
查询
getAccount() - 接口 中的方法top.tangyh.basic.base.controller.BaseController
登录人账号
getBaseService() - 接口 中的方法top.tangyh.basic.base.controller.BaseController
获取Service
getBaseService() - 类 中的方法top.tangyh.basic.base.controller.SuperSimpleController
 
getByIdCache(Serializable) - 接口 中的方法top.tangyh.basic.base.service.SuperCacheService
根据id 先查缓存,再查db
getByIdCache(Serializable) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
getByKey(CacheKey, Function<CacheKey, Object>) - 接口 中的方法top.tangyh.basic.base.service.SuperCacheService
根据 key 查询缓存中存放的id,缓存不存在根据loader加载并写入数据,然后根据查询出来的id查询 实体
getByKey(CacheKey, Function<CacheKey, Object>) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
getEntityClass() - 接口 中的方法top.tangyh.basic.base.controller.BaseController
获取实体的类型
getEntityClass() - 类 中的方法top.tangyh.basic.base.controller.SuperController
 
getEntityClass() - 类 中的方法top.tangyh.basic.base.controller.SuperNoPoiController
 
getEntityClass() - 类 中的方法top.tangyh.basic.base.controller.SuperSimpleController
 
getEntityClass() - 接口 中的方法top.tangyh.basic.base.service.SuperService
获取实体的类型
getEntityClass() - 类 中的方法top.tangyh.basic.base.service.SuperServiceImpl
 
getExcelClass() - 接口 中的方法top.tangyh.basic.base.controller.PoiController
获取实体的类型
getExportParams(PageParams<PageQuery>) - 接口 中的方法top.tangyh.basic.base.controller.PoiController
构建导出参数 子类可以重写
getId(T) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
getName() - 接口 中的方法top.tangyh.basic.base.controller.BaseController
登录人姓名
getSuperMapper() - 类 中的方法top.tangyh.basic.base.service.SuperServiceImpl
 
getTenant() - 接口 中的方法top.tangyh.basic.base.controller.BaseController
当前请求租户
getUserId() - 接口 中的方法top.tangyh.basic.base.controller.BaseController
获取当前id

H

handlerDelete(List<Id>) - 接口 中的方法top.tangyh.basic.base.controller.DeleteController
自定义删除
handlerImport(List<Map<String, String>>) - 接口 中的方法top.tangyh.basic.base.controller.PoiController
转换后保存
handlerQueryParams(PageParams<PageQuery>) - 接口 中的方法top.tangyh.basic.base.controller.PageController
处理查询参数
handlerResult(IPage<Entity>) - 接口 中的方法top.tangyh.basic.base.controller.PageController
处理查询后的数据 如:执行@Echo回显
handlerSave(SaveDTO) - 接口 中的方法top.tangyh.basic.base.controller.SaveController
自定义新增
handlerSave(T) - 类 中的方法top.tangyh.basic.base.service.SuperServiceImpl
处理新增相关处理
handlerUpdate(UpdateDTO) - 接口 中的方法top.tangyh.basic.base.controller.UpdateController
自定义更新
handlerUpdateAllById(T) - 类 中的方法top.tangyh.basic.base.service.SuperServiceImpl
处理修改相关处理
handlerUpdateById(T) - 类 中的方法top.tangyh.basic.base.service.SuperServiceImpl
处理修改相关处理
handlerWrapper(Entity, PageParams<PageQuery>) - 接口 中的方法top.tangyh.basic.base.controller.PageController
处理对象中的非空参数和扩展字段中的区间参数,可以覆盖后处理组装查询条件

I

importExcel(MultipartFile, HttpServletRequest, HttpServletResponse) - 接口 中的方法top.tangyh.basic.base.controller.PoiController
使用自动生成的实体+注解方式导入 建议自建实体使用
insertBatchSomeColumn(List<T>) - 接口 中的方法top.tangyh.basic.base.mapper.SuperMapper
批量插入所有字段 只测试过MySQL!

M

MAX_BATCH_KEY_SIZE - 类 中的静态变量top.tangyh.basic.base.service.SuperCacheServiceImpl
 

O

offset() - 类 中的方法top.tangyh.basic.base.request.PageParams
计算当前分页偏移量

P

page(PageParams<PageQuery>) - 接口 中的方法top.tangyh.basic.base.controller.QueryController
分页查询
PageController<Entity,PageQuery> - top.tangyh.basic.base.controller中的接口
分页控制器
PageParams<T> - top.tangyh.basic.base.request中的类
分页参数
PageParams(long, long) - 类 的构造器top.tangyh.basic.base.request.PageParams
 
PageUtil - top.tangyh.basic.base.request中的类
分页工具类
PoiController<Entity,PageQuery> - top.tangyh.basic.base.controller中的接口
导入导出
preview(PageParams<PageQuery>) - 接口 中的方法top.tangyh.basic.base.controller.PoiController
预览Excel
put(String, Object) - 类 中的方法top.tangyh.basic.base.request.PageParams
 
putAll(Map<String, Object>) - 类 中的方法top.tangyh.basic.base.request.PageParams
 

Q

query(PageParams<PageQuery>) - 接口 中的方法top.tangyh.basic.base.controller.PageController
执行分页查询 子类可以覆盖后重写查询逻辑
query(Entity) - 接口 中的方法top.tangyh.basic.base.controller.QueryController
批量查询
QueryController<Entity,Id extends Serializable,PageQuery> - top.tangyh.basic.base.controller中的接口
查询Controller

R

refreshCache() - 类 中的方法top.tangyh.basic.base.controller.SuperCacheController
刷新缓存
refreshCache() - 接口 中的方法top.tangyh.basic.base.service.SuperCacheService
刷新缓存
refreshCache() - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
removeById(Serializable) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
removeByIds(Collection<?>) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 

S

save(SaveDTO) - 接口 中的方法top.tangyh.basic.base.controller.SaveController
新增
save(T) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
save(T) - 类 中的方法top.tangyh.basic.base.service.SuperServiceImpl
 
saveBatch(Collection<T>, int) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
saveBatchSomeColumn(List<T>) - 接口 中的方法top.tangyh.basic.base.service.SuperService
批量保存数据 注意:该方法仅仅测试过mysql
SaveController<Entity,SaveDTO> - top.tangyh.basic.base.controller中的接口
新增
saveOrUpdateBatch(Collection<T>, int) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
setCache(T) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
success(T) - 接口 中的方法top.tangyh.basic.base.controller.BaseController
成功返回
success() - 接口 中的方法top.tangyh.basic.base.controller.BaseController
成功返回
SuperCacheController<S extends SuperCacheService<Entity>,Id extends Serializable,Entity,PageQuery,SaveDTO,UpdateDTO> - top.tangyh.basic.base.controller中的类
SuperCacheController 继承该类,在SuperController类的基础上扩展了以下方法: 1,get : 根据ID查询缓存,若缓存不存在,则查询DB
SuperCacheController() - 类 的构造器top.tangyh.basic.base.controller.SuperCacheController
 
SuperCacheService<T> - top.tangyh.basic.base.service中的接口
基于MP的 IService 新增了3个方法: getByIdCache 其中: 1,getByIdCache 方法 会先从缓存查询,后从DB查询 (取决于实现类) 2、SuperService 上的方法
SuperCacheServiceImpl<M extends SuperMapper<T>,T> - top.tangyh.basic.base.service中的类
基于 CacheOps 实现的 缓存实现 默认的key规则: #{CacheKeyBuilder#key()}:id 1,getByIdCache:新增的方法: 先查缓存,在查db 2,removeById:重写 ServiceImpl 类的方法,删除db后,淘汰缓存 3,removeByIds:重写 ServiceImpl 类的方法,删除db后,淘汰缓存 4,updateAllById: 新增的方法: 修改数据(所有字段)后,淘汰缓存 5,updateById:重写 ServiceImpl 类的方法,修改db后,淘汰缓存
SuperCacheServiceImpl() - 类 的构造器top.tangyh.basic.base.service.SuperCacheServiceImpl
 
SuperController<S extends SuperService<Entity>,Id extends Serializable,Entity,PageQuery,SaveDTO,UpdateDTO> - top.tangyh.basic.base.controller中的类
SuperController 继承该类,就拥有了如下方法: 1,page 分页查询,并支持子类扩展4个方法:handlerQueryParams、query、handlerWrapper、handlerResult 2,save 保存,并支持子类扩展方法:handlerSave 3,update 修改,并支持子类扩展方法:handlerUpdate 4,delete 删除,并支持子类扩展方法:handlerDelete 5,get 单体查询, 根据ID直接查询DB 6,list 列表查询,根据参数条件,查询列表 7,import 导入,并支持子类扩展方法:handlerImport 8,export 导出,并支持子类扩展3个方法:handlerQueryParams、query、handlerResult 9,preview 导出预览,并支持子类扩展3个方法:handlerQueryParams、query、handlerResult 其中 page、export、preview 的查询条件一致,若子类重写了 handlerQueryParams、query、handlerResult 等任意方法,均衡受到影响 若重写扩展方法无法满足,则可以重写page、save等方法,但切记不要修改 @RequestMapping 参数
SuperController() - 类 的构造器top.tangyh.basic.base.controller.SuperController
 
SuperMapper<T> - top.tangyh.basic.base.mapper中的接口
基于MP的 BaseMapper 新增了2个方法: insertBatchSomeColumn、updateAllById
SuperNoPoiController<S extends SuperService<Entity>,Id extends Serializable,Entity,PageQuery,SaveDTO,UpdateDTO> - top.tangyh.basic.base.controller中的类
SuperNoPoiController 继承该类,就拥有了如下方法: 1,page 分页查询,并支持子类扩展4个方法:handlerQueryParams、query、handlerWrapper、handlerResult 2,save 保存,并支持子类扩展方法:handlerSave 3,update 修改,并支持子类扩展方法:handlerUpdate 4,delete 删除,并支持子类扩展方法:handlerDelete 5,get 单体查询, 根据ID直接查询DB 6,list 列表查询,根据参数条件,查询列表 若重写扩展方法无法满足,则可以重写page、save等方法,但切记不要修改 @RequestMapping 参数
SuperNoPoiController() - 类 的构造器top.tangyh.basic.base.controller.SuperNoPoiController
 
SuperService<T> - top.tangyh.basic.base.service中的接口
基于MP的 IService 新增了2个方法: saveBatchSomeColumn、updateAllById 其中: 1,updateAllById 执行后,会清除缓存 2,saveBatchSomeColumn 批量插入
SuperServiceImpl<M extends SuperMapper<T>,T> - top.tangyh.basic.base.service中的类
不含缓存的Service实现 2,removeById:重写 ServiceImpl 类的方法,删除db 3,removeByIds:重写 ServiceImpl 类的方法,删除db 4,updateAllById: 新增的方法: 修改数据(所有字段) 5,updateById:重写 ServiceImpl 类的方法,修改db后
SuperServiceImpl() - 类 的构造器top.tangyh.basic.base.service.SuperServiceImpl
 
SuperSimpleController<S extends SuperService<Entity>,Entity> - top.tangyh.basic.base.controller中的类
简单的实现了BaseController,为了获取注入 Service 和 实体类型 基类该类后,没有任何方法。
SuperSimpleController() - 类 的构造器top.tangyh.basic.base.controller.SuperSimpleController
 

T

timeRange(PageParams<T>) - 类 中的静态方法top.tangyh.basic.base.request.PageUtil
重置时间区间参数
top.tangyh.basic.base - 程序包 top.tangyh.basic.base
MVC基础包, 封装的 Controller、Service、Mapper等 为什么Controller要拆分成这么多个?
top.tangyh.basic.base.controller - 程序包 top.tangyh.basic.base.controller
 
top.tangyh.basic.base.mapper - 程序包 top.tangyh.basic.base.mapper
 
top.tangyh.basic.base.request - 程序包 top.tangyh.basic.base.request
 
top.tangyh.basic.base.service - 程序包 top.tangyh.basic.base.service
 

U

update(UpdateDTO) - 接口 中的方法top.tangyh.basic.base.controller.UpdateController
修改
updateAll(Entity) - 接口 中的方法top.tangyh.basic.base.controller.UpdateController
修改所有字段
updateAllById(T) - 接口 中的方法top.tangyh.basic.base.mapper.SuperMapper
全量修改所有字段
updateAllById(T) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
updateAllById(T) - 接口 中的方法top.tangyh.basic.base.service.SuperService
根据id修改 entity 的所有字段
updateAllById(T) - 类 中的方法top.tangyh.basic.base.service.SuperServiceImpl
 
updateBatchById(Collection<T>, int) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
updateById(T) - 类 中的方法top.tangyh.basic.base.service.SuperCacheServiceImpl
 
updateById(T) - 类 中的方法top.tangyh.basic.base.service.SuperServiceImpl
 
UpdateController<Entity,UpdateDTO> - top.tangyh.basic.base.controller中的接口
修改Controller

V

validFail(String) - 接口 中的方法top.tangyh.basic.base.controller.BaseController
参数校验失败返回
validFail(String, Object...) - 接口 中的方法top.tangyh.basic.base.controller.BaseController
参数校验失败返回
validFail(BaseExceptionCode) - 接口 中的方法top.tangyh.basic.base.controller.BaseController
参数校验失败返回
B C D E F G H I M O P Q R S T U V 
跳过导航链接

Copyright © 2022. All rights reserved.