update 统一框架所有主键id均使用雪花id

This commit is contained in:
疯狂的狮子Li
2026-04-08 14:55:14 +08:00
parent a74eb4046f
commit cb7ce69bc0
27 changed files with 1721 additions and 1711 deletions

View File

@@ -58,9 +58,14 @@ public interface SystemConstants {
String INNER_LINK = "InnerLink";
/**
* 超级管理员ID
* 超级管理员用户ID
*/
Long SUPER_ADMIN_ID = 1L;
Long SUPER_ADMIN_USER_ID = 1761100000000000001L;
/**
* 超级管理员角色ID
*/
Long SUPER_ADMIN_ROLE_ID = 1761300000000000001L;
/**
* 超级管理员角色 roleKey
@@ -75,7 +80,7 @@ public interface SystemConstants {
/**
* 默认部门 ID
*/
Long DEFAULT_DEPT_ID = 100L;
Long DEFAULT_DEPT_ID = 1761000000000000100L;
/**
* 排除敏感属性字段

View File

@@ -25,7 +25,12 @@ public interface OssConstant {
/**
* 系统数据ids
*/
List<Long> SYSTEM_DATA_IDS = Arrays.asList(1L, 2L, 3L, 4L);
List<Long> SYSTEM_DATA_IDS = Arrays.asList(
1761900000000000001L,
1761900000000000002L,
1761900000000000003L,
1761900000000000004L
);
/**
* 云服务商

View File

@@ -205,7 +205,7 @@ public class LoginHelper {
* @return 是否为超级管理员
*/
public static boolean isSuperAdmin(Long userId) {
return SystemConstants.SUPER_ADMIN_ID.equals(userId);
return SystemConstants.SUPER_ADMIN_USER_ID.equals(userId);
}
/**