修改参数键名时移除前缓存配置

pull/417/MERGE
RuoYi 2 years ago
parent 7ee6ad8aec
commit f3d1f0afe2

@ -12,7 +12,7 @@ import com.ruoyi.common.core.domain.entity.SysDept;
public interface SysDeptMapper
{
/**
*
*
*
* @param dept
* @return

@ -45,7 +45,7 @@ public interface ISysDeptService
public List<Ztree> roleDeptTreeData(SysRole role);
/**
*
* ID
*
* @param parentId ID
* @return

@ -111,6 +111,12 @@ public class SysConfigServiceImpl implements ISysConfigService
@Override
public int updateConfig(SysConfig config)
{
SysConfig temp = configMapper.selectConfigById(config.getConfigId());
if (!StringUtils.equals(temp.getConfigKey(), config.getConfigKey()))
{
CacheUtils.remove(getCacheName(), getCacheKey(temp.getConfigKey()));
}
int row = configMapper.updateConfig(config);
if (row > 0)
{

@ -146,7 +146,7 @@ public class SysDeptServiceImpl implements ISysDeptService
}
/**
*
* ID
*
* @param parentId ID
* @return

Loading…
Cancel
Save