order.java~3~
上传用户:sxlinghang
上传日期:2022-07-20
资源大小:1405k
文件大小:3k
源码类别:

数据库编程

开发平台:

Java

  1. package bookshop.book;
  2. /**
  3.  * <p>Title: </p>
  4.  * <p>Description: </p>
  5.  * <p>Copyright: Copyright (c) 2004</p>
  6.  * <p>Company: </p>
  7.  * @author not attributable
  8.  * @version 1.0
  9.  */
  10. public class order {
  11.         private long Id; //ID序列号
  12.         private String orderId; //订单编号
  13.         private long UserId; //用户序列号
  14.         private String SubmitTime; //提交订单时间
  15.         private String ConsignmentTime;         //交货时间
  16.         private float TotalPrice; //总金额
  17.         private String content;         //用户备注
  18.         private String IPAddress; //下单时IP
  19.         private boolean IsPayoff; //用户是否已付款
  20.         private boolean IsSales; //是否已发货
  21.         public order() {
  22.                 Id = 0;
  23.                 orderId = "";
  24.                 UserId = 0;
  25.                 SubmitTime = "";
  26.                 ConsignmentTime = "";
  27.                 TotalPrice = 0;
  28.                 content = "";
  29.                 IPAddress = "";
  30.                 IsPayoff = false;
  31.                 IsSales = false;
  32.         }
  33.         public long getId() {
  34.                 return Id;
  35.         }
  36.         public void setId(long newId){
  37.                 this.Id = newId;
  38.         }
  39.         public String getOrderId() {
  40.                 return orderId;
  41.         }
  42.         public void setOrderId(String neworderId) {
  43.                 this.orderId = neworderId;
  44.         }
  45.         public long getUserId() {
  46.                 return UserId;
  47.         }
  48.         public void setUserId(long newUserId){
  49.                 this.UserId = newUserId;
  50.         }
  51.         public String getSubmitTime() {
  52.                 return SubmitTime;
  53.         }
  54.         public void setSubmitTime(String newSubmitTime) {
  55.                 this.SubmitTime = newSubmitTime;
  56.         }
  57.         public String getConsignmentTime() {
  58.                 return ConsignmentTime;
  59.         }
  60.         public void setConsignmentTime(String con_time) {
  61.                 ConsignmentTime = con_time;
  62.         }
  63.         public float getTotalPrice() {
  64.                 return TotalPrice;
  65.         }
  66.         public void setTotalPrice(float newTotalPrice){
  67.                 this.TotalPrice = newTotalPrice;
  68.         }
  69.         public String getContent() {
  70.                 return content;
  71.         }
  72.         public void setContent(String newContent) {
  73.                 this.content = newContent;
  74.         }
  75.         public String getIPAddress() {
  76.                 return IPAddress;
  77.         }
  78.         public void setIPAddress(String newIPAddress) {
  79.                 this.IPAddress = newIPAddress;
  80.         }
  81.         public boolean getIsPayoff() {
  82.                 return IsPayoff;
  83.         }
  84.         public void setIsPayoff(boolean newIsPayoff){
  85.                 this.IsPayoff = newIsPayoff;
  86.         }
  87.         public boolean getIsSales() {
  88.                 return IsSales;
  89.         }
  90.         public void setIsSales(boolean newIsSales){
  91.                 this.IsSales = newIsSales;
  92.         }
  93. }