|
|
|
@ -111,6 +111,12 @@ public class SysConfigServiceImpl implements ISysConfigService
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public int updateConfig(SysConfig config)
|
|
|
|
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);
|
|
|
|
int row = configMapper.updateConfig(config);
|
|
|
|
if (row > 0)
|
|
|
|
if (row > 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|