分库的表主键改为雪花id

This commit is contained in:
谭凯凯
2025-01-06 10:08:32 +08:00
committed by Tankaikai
parent ec789a8df1
commit 98182fec9d
17 changed files with 33 additions and 35 deletions

View File

@@ -25,7 +25,7 @@ public class CashOut implements Serializable {
/**
* 申请提现id
*/
@TableId(type = IdType.INPUT)
@TableId(type = IdType.ID_WORKER)
@JsonSerialize(using = ToStringSerializer.class)
private long id;

View File

@@ -24,7 +24,7 @@ public class PayDetails implements Serializable {
/**
* 充值记录id
*/
@TableId(type = IdType.INPUT)
@TableId(type = IdType.ID_WORKER)
@JsonSerialize(using = ToStringSerializer.class)
private Long id;