分库的表主键改为雪花id
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user