he2802 2 lat temu
rodzic
commit
76238494f2

+ 3 - 3
zhongzheng-system/src/main/java/com/zhongzheng/modules/system/service/impl/SysConfigServiceImpl.java

@@ -78,14 +78,14 @@ public class SysConfigServiceImpl extends ServiceImpl<SysConfigMapper, SysConfig
      */
     @Override
     public String selectConfigByKey(String configKey) {
-        String configValue = Convert.toStr(redisCache.getCacheObject(getCacheKey(configKey)));
+       /* String configValue = Convert.toStr(redisCache.getCacheObject(getCacheKey(configKey)));
         if (Validator.isNotEmpty(configValue)) {
             return configValue;
-        }
+        }*/
         SysConfig retConfig = baseMapper.selectOne(new LambdaQueryWrapper<SysConfig>()
                 .eq(SysConfig::getConfigKey, configKey));
         if (Validator.isNotNull(retConfig)) {
-            redisCache.setCacheObject(getCacheKey(configKey), retConfig.getConfigValue(),120, TimeUnit.MINUTES);
+        //    redisCache.setCacheObject(getCacheKey(configKey), retConfig.getConfigValue(),120, TimeUnit.MINUTES);
             return retConfig.getConfigValue();
         }
         return StrUtil.EMPTY;