新增订单模块

This commit is contained in:
starrySky
2024-03-22 15:55:17 +08:00
parent 989f0210f2
commit 994f32a342
130 changed files with 2520 additions and 831 deletions

View File

@@ -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) {