|
@@ -25,6 +25,7 @@ import javax.persistence.*;
|
|
|
import javax.validation.constraints.*;
|
|
|
import java.sql.Timestamp;
|
|
|
import java.io.Serializable;
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
|
* @website https://el-admin.vip
|
|
@@ -49,10 +50,14 @@ public class DmOrderRecord implements Serializable {
|
|
|
// @JoinColumn(name = "id")
|
|
|
// @ManyToOne(fetch=FetchType.LAZY)
|
|
|
// @ApiModelProperty(value = "订单编号", hidden = true)
|
|
|
- @OneToOne
|
|
|
+ @OneToMany
|
|
|
@JoinColumn(name = "bh")
|
|
|
@ApiModelProperty(value = "订单编号")
|
|
|
- private DmOrderItem orderItem;
|
|
|
+ private List<DmOrderItem> orderItems;
|
|
|
+
|
|
|
+ @Column(name = "bh")
|
|
|
+ @ApiModelProperty(value = "订单编号")
|
|
|
+ private String bh;
|
|
|
|
|
|
@Column(name = "money")
|
|
|
@ApiModelProperty(value = "实付金额")
|