zhaowenxuan
8 天以前 0892d843cd394f383ff50f480f7f22f2ec3829bc
ltkj-system/src/main/java/com/ltkj/system/service/impl/SysConfigServiceImpl.java
@@ -61,15 +61,15 @@
     */
    @Override
    public String selectConfigByKey(String configKey) {
        String configValue = Convert.toStr(redisCache.getCacheObject(getCacheKey(configKey)));
        if (StringUtils.isNotEmpty(configValue)) {
            return configValue;
        }
//        String configValue = Convert.toStr(redisCache.getCacheObject(getCacheKey(configKey)));
//        if (StringUtils.isNotEmpty(configValue)) {
//            return configValue;
//        }
        SysConfig config = new SysConfig();
        config.setConfigKey(configKey);
        SysConfig retConfig = configMapper.selectConfig(config);
        if (StringUtils.isNotNull(retConfig)) {
            redisCache.setCacheObject(getCacheKey(configKey), retConfig.getConfigValue());
//            redisCache.setCacheObject(getCacheKey(configKey), retConfig.getConfigValue());
            return retConfig.getConfigValue();
        }
        return StringUtils.EMPTY;
@@ -195,6 +195,11 @@
        return UserConstants.UNIQUE;
    }
    @Override
    public void tbhisproprice() {
        configMapper.tbhisproprice();
    }
    /**
     * 设置cache key
     *