接口 IConfigService
- 所有超级接口:
com.baomidou.mybatisplus.extension.repository.IRepository<SysConfig>,com.baomidou.mybatisplus.extension.service.IService<SysConfig>
- 所有已知实现类:
ConfigServiceImpl
public interface IConfigService
extends com.baomidou.mybatisplus.extension.service.IService<SysConfig>
Author: dongzp
Time: 2019/9/21 20:45
Project: xbaseweb-plus
Email: 90fanhua@gmail.com
Remarks:
-
字段概要
从接口继承的字段 com.baomidou.mybatisplus.extension.repository.IRepository
DEFAULT_BATCH_SIZE -
方法概要
修饰符和类型方法说明boolean删除配置findByCode(String code) 查询配置获取多个配置获取配置<T> T获取配置 自定义返回类型boolean写入配置void加载配置到缓存boolean更新配置booleanupdateBatch(List<SysConfig> sysConfigList) 批量更新配置booleanupdateValue(String code, String value) 设置值从接口继承的方法 com.baomidou.mybatisplus.extension.repository.IRepository
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, removeById, removeById, removeById, removeByIds, removeByIds, removeByMap, save, saveBatch, saveOrUpdate, saveOrUpdateBatch, update, update, update, updateBatchById, updateById从接口继承的方法 com.baomidou.mybatisplus.extension.service.IService
removeBatchByIds, saveBatch, saveOrUpdateBatch, updateBatchById
-
方法详细资料
-
insert
写入配置- 参数:
sysConfig-- 返回:
-
update
更新配置- 参数:
sysConfig-- 返回:
-
updateBatch
批量更新配置- 参数:
sysConfigList-- 返回:
-
delete
删除配置- 参数:
id-- 返回:
-
findByCode
查询配置- 参数:
code-- 返回:
-
loadToCache
void loadToCache()加载配置到缓存 -
updateValue
设置值- 参数:
code-value-- 返回:
-
getValue
获取配置- 参数:
code-- 返回:
-
getValue
获取配置 自定义返回类型- 类型参数:
T-- 参数:
code-clazz-- 返回:
-
getList
获取多个配置- 参数:
codeList-- 返回:
-