| 程序包 | 说明 |
|---|---|
| top.tangyh.basic.base.controller | |
| top.tangyh.basic.base.service |
| 类和说明 |
|---|
| SuperCacheService
基于MP的 IService 新增了3个方法: getByIdCache
其中:
1,getByIdCache 方法 会先从缓存查询,后从DB查询 (取决于实现类)
2、SuperService 上的方法
|
| SuperService
基于MP的 IService 新增了2个方法: saveBatchSomeColumn、updateAllById
其中:
1,updateAllById 执行后,会清除缓存
2,saveBatchSomeColumn 批量插入
|
| 类和说明 |
|---|
| SuperCacheService
基于MP的 IService 新增了3个方法: getByIdCache
其中:
1,getByIdCache 方法 会先从缓存查询,后从DB查询 (取决于实现类)
2、SuperService 上的方法
|
| SuperService
基于MP的 IService 新增了2个方法: saveBatchSomeColumn、updateAllById
其中:
1,updateAllById 执行后,会清除缓存
2,saveBatchSomeColumn 批量插入
|
| SuperServiceImpl
不含缓存的Service实现
2,removeById:重写 ServiceImpl 类的方法,删除db
3,removeByIds:重写 ServiceImpl 类的方法,删除db
4,updateAllById: 新增的方法: 修改数据(所有字段)
5,updateById:重写 ServiceImpl 类的方法,修改db后
|
Copyright © 2021. All rights reserved.