|
@@ -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)
|
|
|
{
|