mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 16:23:42 +08:00 
			
		
		
		
	fix 修复 根据key更新参数配置报null问题
This commit is contained in:
		@@ -136,12 +136,12 @@ public class SysConfigServiceImpl implements ISysConfigService, ConfigService {
 | 
			
		||||
    @CachePut(cacheNames = CacheNames.SYS_CONFIG, key = "#config.configKey")
 | 
			
		||||
    @Override
 | 
			
		||||
    public String updateConfig(SysConfig config) {
 | 
			
		||||
        int row = 0;
 | 
			
		||||
        if (config.getConfigId() != null) {
 | 
			
		||||
            SysConfig temp = baseMapper.selectById(config.getConfigId());
 | 
			
		||||
            if (!StringUtils.equals(temp.getConfigKey(), config.getConfigKey())) {
 | 
			
		||||
                CacheUtils.evict(CacheNames.SYS_CONFIG, temp.getConfigKey());
 | 
			
		||||
            }
 | 
			
		||||
        int row = 0;
 | 
			
		||||
        if (config.getConfigId() != null) {
 | 
			
		||||
            row = baseMapper.updateById(config);
 | 
			
		||||
        } else {
 | 
			
		||||
            row = baseMapper.update(config, new LambdaQueryWrapper<SysConfig>()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user