fixed: 后台数据权限bug

This commit is contained in:
none
2023-03-23 17:03:59 +08:00
parent fa5b25782f
commit 6c57a5f917
4 changed files with 13 additions and 2 deletions

View File

@@ -28,9 +28,16 @@ public class BCtx {
}
private static Object get(String key) {
if (THREAD_LOCAL.get() == null) {
return null;
}
return THREAD_LOCAL.get().getOrDefault(key, null);
}
public static boolean isNull() {
return THREAD_LOCAL.get() == null;
}
public static void remove() {
THREAD_LOCAL.remove();
}