From 50a0813ce126e26058a068f82bb098c2209748aa Mon Sep 17 00:00:00 2001 From: lulz1 Date: Fri, 28 Jun 2024 13:00:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=AE=A1=E6=89=B9=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../aggregates/approval/ApprovalRecord.java | 21 +++++++++++++++++++ .../aggregates/order/LegApprovalEvent.java | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/chint/domain/aggregates/approval/ApprovalRecord.java diff --git a/src/main/java/com/chint/domain/aggregates/approval/ApprovalRecord.java b/src/main/java/com/chint/domain/aggregates/approval/ApprovalRecord.java new file mode 100644 index 00000000..415c3a26 --- /dev/null +++ b/src/main/java/com/chint/domain/aggregates/approval/ApprovalRecord.java @@ -0,0 +1,21 @@ +package com.chint.domain.aggregates.approval; + +import lombok.Data; +import org.springframework.data.annotation.Id; +import org.springframework.data.relational.core.mapping.Table; + +import java.io.Serial; +import java.io.Serializable; + +@Data +@Table("approval_record") +public class ApprovalRecord implements Serializable { + @Serial + private static final long serialVersionUID = 987769272351235112L; + + @Id + private Long id; + private Long routeId; + private Long userId; + private String status; +} diff --git a/src/main/java/com/chint/domain/aggregates/order/LegApprovalEvent.java b/src/main/java/com/chint/domain/aggregates/order/LegApprovalEvent.java index e94c047e..40a7db2d 100644 --- a/src/main/java/com/chint/domain/aggregates/order/LegApprovalEvent.java +++ b/src/main/java/com/chint/domain/aggregates/order/LegApprovalEvent.java @@ -20,7 +20,7 @@ public class LegApprovalEvent extends BaseEvent implements Serializable { @Serial private static final long serialVersionUID = 1113987613221578925L; @Id - private Long legEventId; + private Long id; @Column("leg_id") private Long legId;