|
|
@@ -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;
|