朱杰
2021-05-31 8ba346faa6318bc78b5427a7feede5474c9e03d7
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysConfigServiceImpl.java
@@ -33,9 +33,6 @@
public class SysConfigServiceImpl extends ServiceImpl<SysConfigMapper, SysConfig> implements ISysConfigService {
   @Autowired
   private SysConfigMapper configMapper;
   @Autowired
   private RedisCache redisCache;
   /**
@@ -160,7 +157,7 @@
         if (StrUtil.equals(UserConstants.YES, config.getConfigType())) {
            throw new CustomException(String.format("内置参数【%1$s】不能删除 ", config.getConfigKey()));
         }
         configMapper.deleteById(configId);
         baseMapper.deleteById(configId);
         redisCache.deleteObject(getCacheKey(config.getConfigKey()));
      }
   }