@Service public class SysConfigServiceImpl extends ExtendServiceImpl<SysConfigMapper,SysConfig> implements SysConfigService
baseMapper, entityClass, log, mapperClassDEFAULT_BATCH_SIZE| 构造器和说明 |
|---|
SysConfigServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getConfValueByKey(String confKey)
根据配置key获取对应value
|
com.hccake.ballcat.common.model.domain.PageResult<SysConfigPageVO> |
queryPage(com.hccake.ballcat.common.model.domain.PageParam pageParam,
SysConfigQO sysConfigQO)
根据QueryObject查询分页数据
|
boolean |
removeByKey(String confKey)
根据 confKey 进行删除
|
boolean |
save(SysConfig entity)
保存系统配置,由于查询不到时会缓存空值,所以新建时也需要删除对应 key,防止之前误存了空值数据
|
boolean |
updateByKey(SysConfig sysConfig)
根据 confKey 进行更新
|
currentMapperClass, currentModelClass, executeBatch, getBaseMapper, getEntityClass, getSqlStatement, removeBatchByIds, removeBatchByIds, removeById, removeById, removeByIds, retBool, saveBatch, saveBatchSomeColumn, saveOrUpdate, saveOrUpdateBatch, updateBatchByIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBaseMapper, getById, getEntityClass, list, listByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeBatchByIds, removeById, removeById, removeById, removeByIds, removeByIds, saveBatch, saveBatch, saveBatchSomeColumn, saveBatchSomeColumn, saveOrUpdate, saveOrUpdateBatch, saveOrUpdateBatch, updateBatchById, updateBatchById, updateByIdpublic com.hccake.ballcat.common.model.domain.PageResult<SysConfigPageVO> queryPage(com.hccake.ballcat.common.model.domain.PageParam pageParam, SysConfigQO sysConfigQO)
SysConfigServicequeryPage 在接口中 SysConfigServicepageParam - 分页参数sysConfigQO - 查询参数对象@Cached(key="system-config", keyJoint="#confKey") public String getConfValueByKey(String confKey)
SysConfigServicegetConfValueByKey 在接口中 SysConfigServiceconfKey - 配置key@CacheDel(key="system-config", keyJoint="#p0.confKey") public boolean save(SysConfig entity)
save 在接口中 ExtendService<SysConfig>entity - 实体对象@CacheDel(key="system-config", keyJoint="#sysConfig.confKey") public boolean updateByKey(SysConfig sysConfig)
SysConfigServiceupdateByKey 在接口中 SysConfigServicesysConfig - 系统配置@CacheDel(key="system-config", keyJoint="#confKey") public boolean removeByKey(String confKey)
SysConfigServiceremoveByKey 在接口中 SysConfigServiceconfKey - 配置keyCopyright © 2023. All rights reserved.