接口 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
    删除配置
    查询配置
    getList(List<String> codeList)
    获取多个配置
    获取配置
    <T> T
    getValue(String code, Class<T> clazz)
    获取配置 自定义返回类型
    boolean
    insert(SysConfig sysConfig)
    写入配置
    void
    加载配置到缓存
    boolean
    update(SysConfig sysConfig)
    更新配置
    boolean
    updateBatch(List<SysConfig> sysConfigList)
    批量更新配置
    boolean
    updateValue(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

      boolean insert(SysConfig sysConfig)
      写入配置
      参数:
      sysConfig -
      返回:
    • update

      boolean update(SysConfig sysConfig)
      更新配置
      参数:
      sysConfig -
      返回:
    • updateBatch

      boolean updateBatch(List<SysConfig> sysConfigList)
      批量更新配置
      参数:
      sysConfigList -
      返回:
    • delete

      boolean delete(String id)
      删除配置
      参数:
      id -
      返回:
    • findByCode

      SysConfig findByCode(String code)
      查询配置
      参数:
      code -
      返回:
    • loadToCache

      void loadToCache()
      加载配置到缓存
    • updateValue

      boolean updateValue(String code, String value)
      设置值
      参数:
      code -
      value -
      返回:
    • getValue

      String getValue(String code)
      获取配置
      参数:
      code -
      返回:
    • getValue

      <T> T getValue(String code, Class<T> clazz)
      获取配置 自定义返回类型
      类型参数:
      T -
      参数:
      code -
      clazz -
      返回:
    • getList

      List<SysConfig> getList(List<String> codeList)
      获取多个配置
      参数:
      codeList -
      返回: