153 lines
2.3 KiB
Plaintext
153 lines
2.3 KiB
Plaintext
package com.nationalelectric.greenH5.po;
|
|
|
|
import org.hibernate.validator.constraints.NotBlank;
|
|
import java.text.SimpleDateFormat;
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* GreenFoodOrderDetail
|
|
* @author dell
|
|
*/
|
|
public class GreenFoodOrderDetail implements java.io.Serializable {
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private static final long serialVersionUID = -2478971044641921574L;
|
|
|
|
/**
|
|
* 序列化
|
|
*/
|
|
|
|
|
|
|
|
|
|
/**
|
|
*主键ID
|
|
*/
|
|
|
|
private Long id;
|
|
|
|
/**
|
|
*订单ID
|
|
*/
|
|
@NotBlank(message="不能为空")
|
|
private Long orderId;
|
|
|
|
/**
|
|
*菜品ID
|
|
*/
|
|
@NotBlank(message="不能为空")
|
|
private Long goodsId;
|
|
|
|
/**
|
|
*购买菜品数量
|
|
*/
|
|
@NotBlank(message="不能为空")
|
|
private String goodsNum;
|
|
|
|
/**
|
|
*创建者
|
|
*/
|
|
@NotBlank(message="不能为空")
|
|
private String creator = "admin";
|
|
|
|
/**
|
|
*修改者
|
|
*/
|
|
@NotBlank(message="不能为空")
|
|
private String modifier = "admin";
|
|
|
|
/**
|
|
*创建时间
|
|
*/
|
|
@NotBlank(message="不能为空")
|
|
private Date gmtCreated = new Date();
|
|
|
|
/**
|
|
*修改时间
|
|
*/
|
|
@NotBlank(message="不能为空")
|
|
private Date gmtModified = new Date();
|
|
|
|
/**
|
|
*是否删除YN默认N
|
|
*/
|
|
@NotBlank(message="不能为空")
|
|
private String isDeleted = "N";
|
|
|
|
public Long getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(Long id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public Long getOrderId() {
|
|
return orderId;
|
|
}
|
|
|
|
public void setOrderId(Long orderId) {
|
|
this.orderId = orderId;
|
|
}
|
|
|
|
public Long getGoodsId() {
|
|
return goodsId;
|
|
}
|
|
|
|
public void setGoodsId(Long goodsId) {
|
|
this.goodsId = goodsId;
|
|
}
|
|
|
|
public String getGoodsNum() {
|
|
return goodsNum;
|
|
}
|
|
|
|
public void setGoodsNum(String goodsNum) {
|
|
this.goodsNum = goodsNum;
|
|
}
|
|
|
|
public String getCreator() {
|
|
return creator;
|
|
}
|
|
|
|
public void setCreator(String creator) {
|
|
this.creator = creator;
|
|
}
|
|
|
|
public String getModifier() {
|
|
return modifier;
|
|
}
|
|
|
|
public void setModifier(String modifier) {
|
|
this.modifier = modifier;
|
|
}
|
|
|
|
public Date getGmtCreated() {
|
|
return gmtCreated;
|
|
}
|
|
|
|
public void setGmtCreated(Date gmtCreated) {
|
|
this.gmtCreated = gmtCreated;
|
|
}
|
|
|
|
public Date getGmtModified() {
|
|
return gmtModified;
|
|
}
|
|
|
|
public void setGmtModified(Date gmtModified) {
|
|
this.gmtModified = gmtModified;
|
|
}
|
|
|
|
public String getIsDeleted() {
|
|
return isDeleted;
|
|
}
|
|
|
|
public void setIsDeleted(String isDeleted) {
|
|
this.isDeleted = isDeleted;
|
|
}
|
|
|
|
|
|
}
|