解决合并冲突

This commit is contained in:
2025-12-10 14:20:24 +08:00
parent e1385cb3e6
commit 18f6a845e6
804 changed files with 61881 additions and 13577 deletions

View File

@@ -3,6 +3,7 @@ package com.core.web.util;
import com.core.common.core.domain.model.LoginUser;
import com.core.common.enums.TenantOptionDict;
import com.core.common.utils.SecurityUtils;
import com.core.common.utils.StringUtils;
/**
* 租户配置工具类
@@ -30,7 +31,12 @@ public class TenantOptionUtil {
if (loginUser.getOptionMap() == null || loginUser.getOptionMap().isEmpty()) {
return null;
}
return loginUser.getOptionMap().get(optionDict.getCode());
// return loginUser.getOptionMap().get(optionDict.getCode());
// TODO:2025/10/17 李永兴提出的sys_option切换TenantOption临时防止报错方案最晚2025年11月底删除
String newValue = loginUser.getOptionMap().get(optionDict.getCode());
String oldValue = loginUser.getOptionJson().getString(optionDict.getCode());
return StringUtils.isEmpty(newValue) ? oldValue : newValue;
}
}