新增订单模块
This commit is contained in:
@@ -13,7 +13,7 @@ import java.util.concurrent.ConcurrentHashMap;
|
||||
* 获取当前线程变量中的 租户id 部门id 用户id、用户名称、Token等信息
|
||||
* @since 2023/3/6
|
||||
*/
|
||||
public class SecurityContextHolder {
|
||||
public class CustomSecurityContextHolder {
|
||||
|
||||
private static final TransmittableThreadLocal<Map<String, Object>> THREAD_LOCAL = new TransmittableThreadLocal<>();
|
||||
|
||||
@@ -47,8 +47,8 @@ public class SecurityContextHolder {
|
||||
}
|
||||
|
||||
|
||||
public static Long getTenantId() {
|
||||
return Convert.toLong(get(SecurityConstants.DETAILS_TENANT_ID), 9999L);
|
||||
public static String getTenantId() {
|
||||
return Convert.toStr(get(SecurityConstants.DETAILS_TENANT_ID), "9999");
|
||||
}
|
||||
|
||||
public static void setTenantId(String tenantId) {
|
||||
Reference in New Issue
Block a user