📄 order.java
字号:
package book;
public class order //订单实体的抽象
{
private long id; //ID序列号
private String orderId; //订单编号
private long userId; //用户序列号,用于对应用户的名称
private String submitTime; //提交订单时间
private String consignmentTime; //交货时间
private float totalPrice; //总金额
private String content; //用户备注
private String ipAddress; //下单时的IP
private boolean isPayoff; //是否已经付款
private boolean isSales; //是否发货
public order()
{
id = 0;
orderId = "";
userId = 0;
submitTime = "";
consignmentTime = "";
totalPrice = 0;
content = "";
ipAddress = "";
isPayoff = false;
isSales = false;
}
public String getConsignmentTime()
{
return consignmentTime;
}
public String getContent()
{
return content;
}
public long getId()
{
return id;
}
public String getIpAddress()
{
return ipAddress;
}
public boolean isPayoff()
{
return isPayoff;
}
public boolean isSales()
{
return isSales;
}
public String getOrderId()
{
return orderId;
}
public String getSubmitTime()
{
return submitTime;
}
public float getTotalPrice()
{
return totalPrice;
}
public long getUserId()
{
return userId;
}
public void setConsignmentTime(String consignmentTime)
{
this.consignmentTime = consignmentTime;
}
public void setContent(String content)
{
this.content = content;
}
public void setId(long id)
{
this.id = id;
}
public void setIpAddress(String ipAddress)
{
this.ipAddress = ipAddress;
}
public void setPayoff(boolean isPayoff)
{
this.isPayoff = isPayoff;
}
public void setSales(boolean isSales)
{
this.isSales = isSales;
}
public void setOrderId(String orderId)
{
this.orderId = orderId;
}
public void setSubmitTime(String submitTime)
{
this.submitTime = submitTime;
}
public void setTotalPrice(float totalPrice)
{
this.totalPrice = totalPrice;
}
public void setUserId(long userId)
{
this.userId = userId;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -