yangdamao 2 سال پیش
والد
کامیت
866609fd92

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

@@ -17,6 +17,7 @@ import com.zhongzheng.common.core.redis.RedisCache;
 import com.zhongzheng.common.enums.DataSourceType;
 import com.zhongzheng.common.exception.CustomException;
 import com.zhongzheng.common.utils.DateUtils;
+import com.zhongzheng.common.utils.ServletUtils;
 import com.zhongzheng.modules.grade.domain.ClassGradeUser;
 import com.zhongzheng.modules.system.domain.SysConfig;
 import com.zhongzheng.modules.system.domain.SysTenant;
@@ -77,8 +78,11 @@ public class SysConfigServiceImpl extends ServiceImpl<SysConfigMapper, SysConfig
      */
     @Override
     public String selectConfigByKey(String configKey) {
+        log.error("configKey:"+configKey);
+        log.error("tenantId:"+ ServletUtils.getRequest().getHeader("TenantId"));
         String configValue = Convert.toStr(redisCache.getCacheObject(getCacheKey(configKey)));
         if (Validator.isNotEmpty(configValue)) {
+            log.error("configValue:"+configValue);
             return configValue;
         }
         SysConfig retConfig = baseMapper.selectOne(new LambdaQueryWrapper<SysConfig>()