Pre Merge pull request !415 from Midya/master

pull/415/MERGE
Midya 2022-12-13 05:18:07 +00:00 committed by Gitee
commit 0aea704dec
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 14 additions and 2 deletions

View File

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

View File

@ -103,6 +103,11 @@ public class SysConfigServiceImpl implements ISysConfigService
} }
/** /**
* @date 2022/10/17
* @description sys config
* @author Midya
*
*
* *
* *
* @param config * @param config
@ -111,6 +116,13 @@ public class SysConfigServiceImpl implements ISysConfigService
@Override @Override
public int updateConfig(SysConfig config) public int updateConfig(SysConfig config)
{ {
// 整理缓存
SysConfig temp = new SysConfig();
temp.setConfigId(config.getConfigId());
String configKey = configMapper.selectConfig(temp).getConfigKey();
CacheUtils.remove(getCacheName(),getCacheKey(configKey));
//
int row = configMapper.updateConfig(config); int row = configMapper.updateConfig(config);
if (row > 0) if (row > 0)
{ {

View File

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