2025-11-12 openHIS 发版

This commit is contained in:
whm
2025-11-12 17:06:09 +08:00
parent 88535b8e7c
commit e8d67e6681
777 changed files with 62002 additions and 20046 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;
}
}