📄 order.java
字号:
/**
*
*/
package com.qrsx.shop.model;
import java.util.ArrayList;
import java.util.List;
/**
*@Author:李世海
*@Address:青岛软件园
*@Date: Mar 29, 2009
*/
public class Order {
private Integer id;
private String onDate;
private Integer amount;
private Double total;
private String postAddress;
private String postcard;
private String telephone;
private String contact;
private Integer userId;
private Integer state;
private List<OrderBook> orderBooks;
public void addOrderBook( OrderBook orderBook ){
if( orderBooks == null ){
orderBooks = new ArrayList<OrderBook>();
}
orderBooks.add(orderBook);
}
/**
* @return the id
*/
public Integer getId() {
return id;
}
/**
* @param id the id to set
*/
public void setId(Integer id) {
this.id = id;
}
/**
* @return the onDate
*/
public String getOnDate() {
return onDate;
}
/**
* @param onDate the onDate to set
*/
public void setOnDate(String onDate) {
this.onDate = onDate;
}
/**
* @return the amount
*/
public Integer getAmount() {
return amount;
}
/**
* @param amount the amount to set
*/
public void setAmount(Integer amount) {
this.amount = amount;
}
/**
* @return the total
*/
public Double getTotal() {
return total;
}
/**
* @param total the total to set
*/
public void setTotal(Double total) {
this.total = total;
}
/**
* @return the postAddress
*/
public String getPostAddress() {
return postAddress;
}
/**
* @param postAddress the postAddress to set
*/
public void setPostAddress(String postAddress) {
this.postAddress = postAddress;
}
/**
* @return the postCard
*/
public String getPostcard() {
return postcard;
}
/**
* @param postCard the postCard to set
*/
public void setPostcard(String postCard) {
this.postcard = postCard;
}
/**
* @return the telephone
*/
public String getTelephone() {
return telephone;
}
/**
* @param telephone the telephone to set
*/
public void setTelephone(String telephone) {
this.telephone = telephone;
}
/**
* @return the contact
*/
public String getContact() {
return contact;
}
/**
* @param contact the contact to set
*/
public void setContact(String contact) {
this.contact = contact;
}
/**
* @return the userId
*/
public Integer getUserId() {
return userId;
}
/**
* @param userId the userId to set
*/
public void setUserId(Integer userId) {
this.userId = userId;
}
/**
* @return the state
*/
public Integer getState() {
return state;
}
/**
* @param state the state to set
*/
public void setState(Integer state) {
this.state = state;
}
/**
* @return the orderBook
*/
public List<OrderBook> getOrderBooks() {
return orderBooks;
}
/**
* @param orderBook the orderBook to set
*/
public void setOrderBooks(List<OrderBook> orderBooks) {
this.orderBooks = orderBooks;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -