首次提交
This commit is contained in:
parent
1101681331
commit
ed171eda88
107 changed files with 1370 additions and 524 deletions
|
|
@ -27,19 +27,12 @@ import org.hibernate.annotations.Comment;
|
|||
public class Review extends AbstractBaseEntity {
|
||||
|
||||
|
||||
/**
|
||||
* 订单ID
|
||||
*/
|
||||
@Column(name = "order_id", nullable = false)
|
||||
@Comment("订单ID")
|
||||
private Long orderId;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* C端用户ID
|
||||
*/
|
||||
@Column(name = "user_id", nullable = false)
|
||||
@Column(name = "user_id")
|
||||
@Comment("C端用户ID")
|
||||
private Long userId;
|
||||
|
||||
|
|
@ -60,7 +53,7 @@ public class Review extends AbstractBaseEntity {
|
|||
/**
|
||||
* 评分 1-5
|
||||
*/
|
||||
@Column(name = "rating", nullable = false)
|
||||
@Column(name = "rating")
|
||||
@Comment("评分 1-5")
|
||||
private Integer rating;
|
||||
|
||||
|
|
@ -81,14 +74,14 @@ public class Review extends AbstractBaseEntity {
|
|||
/**
|
||||
* 是否匿名
|
||||
*/
|
||||
@Column(name = "is_anonymous", nullable = false)
|
||||
@Column(name = "is_anonymous")
|
||||
@Comment("是否匿名")
|
||||
private Boolean isAnonymous = Boolean.FALSE;
|
||||
|
||||
/**
|
||||
* 状态:1-正常 0-隐藏
|
||||
*/
|
||||
@Column(name = "status",columnDefinition = "VARCHAR(20)",length = 20, nullable = false)
|
||||
@Column(name = "status",columnDefinition = "VARCHAR(20)",length = 20)
|
||||
@Comment("状态:1正常 0隐藏")
|
||||
private ReviewStatus status = ReviewStatus.NORMAL;
|
||||
|
||||
|
|
@ -104,16 +97,25 @@ public class Review extends AbstractBaseEntity {
|
|||
* 门店
|
||||
*/
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "store_id", insertable = false, updatable = false)
|
||||
@JoinColumn(name = "merchant_id")
|
||||
private Merchant merchant;
|
||||
/**
|
||||
* 门店
|
||||
*/
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "store_id")
|
||||
private Store store;
|
||||
|
||||
/**
|
||||
* 订单
|
||||
*/
|
||||
@ManyToOne(fetch = FetchType.LAZY)
|
||||
@JoinColumn(name = "order_id", insertable = false, updatable = false)
|
||||
@JoinColumn(name = "order_id")
|
||||
private Order order;
|
||||
|
||||
|
||||
|
||||
|
||||
// ========== 业务方法 ==========
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue