| | |
| | | import org.greenrobot.greendao.annotation.Id; |
| | | import org.greenrobot.greendao.annotation.NotNull; |
| | | import org.greenrobot.greendao.annotation.Generated; |
| | | import org.greenrobot.greendao.annotation.Unique; |
| | | |
| | | @Entity |
| | | public class Order { |
| | | @Id |
| | | private long id; |
| | | @Id(autoincrement = true) |
| | | private Long id; |
| | | @Unique |
| | | private String orderId; |
| | | @Unique |
| | | private String orderNo; |
| | | @NotNull |
| | | private String gridNo; |
| | | @NotNull |
| | | private String xuHao; |
| | | @NotNull |
| | | private int state;//状态;0-未存餐 1-已存餐 2-已取餐 3-取消 |
| | | private long putInDate; |
| | | private String putInDate; |
| | | private String takeCode; |
| | | @Generated(hash = 2118332125) |
| | | public Order(long id, String orderNo, @NotNull String gridNo, int state, |
| | | long putInDate, String takeCode) { |
| | | private String createTime; |
| | | @Generated(hash = 295152111) |
| | | public Order(Long id, String orderId, String orderNo, @NotNull String gridNo, |
| | | @NotNull String xuHao, int state, String putInDate, String takeCode, |
| | | String createTime) { |
| | | this.id = id; |
| | | this.orderId = orderId; |
| | | this.orderNo = orderNo; |
| | | this.gridNo = gridNo; |
| | | this.xuHao = xuHao; |
| | | this.state = state; |
| | | this.putInDate = putInDate; |
| | | this.takeCode = takeCode; |
| | | this.createTime = createTime; |
| | | } |
| | | @Generated(hash = 1105174599) |
| | | public Order() { |
| | | } |
| | | public long getId() { |
| | | public Long getId() { |
| | | return this.id; |
| | | } |
| | | public void setId(long id) { |
| | | public void setId(Long id) { |
| | | this.id = id; |
| | | } |
| | | public String getOrderId() { |
| | | return this.orderId; |
| | | } |
| | | public void setOrderId(String orderId) { |
| | | this.orderId = orderId; |
| | | } |
| | | public String getOrderNo() { |
| | | return this.orderNo; |
| | |
| | | public void setGridNo(String gridNo) { |
| | | this.gridNo = gridNo; |
| | | } |
| | | public String getXuHao() { |
| | | return this.xuHao; |
| | | } |
| | | public void setXuHao(String xuHao) { |
| | | this.xuHao = xuHao; |
| | | } |
| | | public int getState() { |
| | | return this.state; |
| | | } |
| | | public void setState(int state) { |
| | | this.state = state; |
| | | } |
| | | public long getPutInDate() { |
| | | public String getPutInDate() { |
| | | return this.putInDate; |
| | | } |
| | | public void setPutInDate(long putInDate) { |
| | | public void setPutInDate(String putInDate) { |
| | | this.putInDate = putInDate; |
| | | } |
| | | public String getTakeCode() { |
| | |
| | | public void setTakeCode(String takeCode) { |
| | | this.takeCode = takeCode; |
| | | } |
| | | } |
| | | public String getCreateTime() { |
| | | return this.createTime; |
| | | } |
| | | public void setCreateTime(String createTime) { |
| | | this.createTime = createTime; |
| | | } |
| | | } |