perf: 企业版许可限制机制

This commit is contained in:
fit2cloud-chenyw
2023-12-03 14:59:25 +08:00
parent c1b11ed31f
commit 6af4c59fe8
5 changed files with 13 additions and 3 deletions

View File

@@ -3,6 +3,7 @@ package io.dataease.constant;
public class CacheConstant {
public static class UserCacheConstant {
public static final String USER_COUNT_CACHE = "user_count";
public static final String USER_ECHELON_CACHE = "user_echelon";
public static final String LOGIN_USER_CACHE = "login_user_cache";
public static final String USER_ROLES_CACHE = "user_roles";
public static final String USER_BUSI_PERS_CACHE = "user_busi_pers";

View File

@@ -29,7 +29,7 @@ public class AuthUtils {
}
public static boolean isSysAdmin(Long userId) {
return userId == SYS_ADMIN_UID;
return userId.equals(SYS_ADMIN_UID);
}