1、id自增调整为雪花模式

This commit is contained in:
2026-03-31 20:57:52 +08:00
parent e78565ea5a
commit 8c43ec408d
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ import java.time.LocalDateTime;
@TableName("push_message_retry_history")
@EqualsAndHashCode(callSuper = true)
public class MessageRetryHistoryDO extends BaseDO {
private Integer id;
private Long id;
/**
* 关联 message_record 的 message_id

View File

@@ -61,10 +61,10 @@ mybatis-plus:
map-underscore-to-camel-case: true # 虽然默认为 true ,但是还是显示去指定下。
global-config:
db-config:
id-type: NONE # “智能”模式,基于 IdTypeEnvironmentPostProcessor + 数据源的类型,自动适配成 AUTO、INPUT 模式。
id-type: ASSIGN_ID # 分配 ID默认使用雪花算法
# id-type: NONE # “智能”模式,基于 IdTypeEnvironmentPostProcessor + 数据源的类型,自动适配成 AUTO、INPUT 模式。
# id-type: AUTO # 自增 ID适合 MySQL 等直接自增的数据库
# id-type: INPUT # 用户输入 ID适合 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库
# id-type: ASSIGN_ID # 分配 ID默认使用雪花算法。注意Oracle、PostgreSQL、Kingbase、DB2、H2 数据库时,需要去除实体类上的 @KeySequence 注解
logic-delete-value: 1 # 逻辑已删除值(默认为 1)
logic-not-delete-value: 0 # 逻辑未删除值(默认为 0)
banner: false # 关闭控制台的 Banner 打印