Bläddra i källkod

上传文件至 'Shop/src/cn/domain'

1801010538 5 år sedan
förälder
incheckning
1da2218f75

+ 79 - 0
Shop/src/cn/domain/Agent.java

@@ -0,0 +1,79 @@
+package cn.domain;
+
+public class Agent {
+    private int id;
+    private String name;
+    private int phone;
+    private String img;
+    private String company;
+    private String password;
+    private String mid;
+
+    public String getMid() {
+        return mid;
+    }
+
+    public void setMid(String mid) {
+        this.mid = mid;
+    }
+
+    public int getId() {
+        return id;
+    }
+
+    public String getPassword() {
+        return password;
+    }
+
+    public void setPassword(String password) {
+        this.password = password;
+    }
+
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public int getPhone() {
+        return phone;
+    }
+
+    public void setPhone(int phone) {
+        this.phone = phone;
+    }
+
+    public String getImg() {
+        return img;
+    }
+
+    public void setImg(String img) {
+        this.img = img;
+    }
+
+    public String getCompany() {
+        return company;
+    }
+
+    public void setCompany(String company) {
+        this.company = company;
+    }
+
+    @Override
+    public String toString() {
+        return "Agent{" +
+                "id=" + id +
+                ", name='" + name + '\'' +
+                ", phone=" + phone +
+                ", img='" + img + '\'' +
+                ", company='" + company + '\'' +
+                ", password='" + password + '\'' +
+                '}';
+    }
+}

+ 40 - 0
Shop/src/cn/domain/Company.java

@@ -0,0 +1,40 @@
+package cn.domain;
+
+public class Company {
+    private String mid;
+    private String name;
+    private String img;
+    private int code;
+
+    public String getMid() {
+        return mid;
+    }
+
+    public void setMid(String mid) {
+        this.mid = mid;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getImg() {
+        return img;
+    }
+
+    public void setImg(String img) {
+        this.img = img;
+    }
+
+    public int getCode() {
+        return code;
+    }
+
+    public void setCode(int code) {
+        this.code = code;
+    }
+}

+ 87 - 0
Shop/src/cn/domain/Order.java

@@ -0,0 +1,87 @@
+package cn.domain;
+
+import java.util.Date;
+
+public class Order {
+    private String id;
+    private String name;//下单客户名字
+    private String buyer;
+    private String saler;
+    private String product;
+    private int amount;
+    private double price;
+    private double totalprice;
+    private Date time;
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getBuyer() {
+        return buyer;
+    }
+
+    public void setBuyer(String buyer) {
+        this.buyer = buyer;
+    }
+
+    public String getSaler() {
+        return saler;
+    }
+
+    public void setSaler(String saler) {
+        this.saler = saler;
+    }
+
+    public String getProduct() {
+        return product;
+    }
+
+    public void setProduct(String product) {
+        this.product = product;
+    }
+
+    public int getAmount() {
+        return amount;
+    }
+
+    public void setAmount(int amount) {
+        this.amount = amount;
+    }
+
+    public double getPrice() {
+        return price;
+    }
+
+    public void setPrice(double price) {
+        this.price = price;
+    }
+
+    public double getTotalprice() {
+        return totalprice;
+    }
+
+    public void setTotalprice(double totalprice) {
+        this.totalprice = totalprice;
+    }
+
+    public Date getTime() {
+        return time;
+    }
+
+    public void setTime(Date time) {
+        this.time = time;
+    }
+}

+ 79 - 0
Shop/src/cn/domain/Product.java

@@ -0,0 +1,79 @@
+package cn.domain;
+
+public class Product {
+    private String mid;
+    private int id;
+    private String name;
+    private double price;
+    private String detail;
+    private String scompany;
+    private String img;
+
+    public String getMid() {
+        return mid;
+    }
+
+    public void setMid(String mid) {
+        this.mid = mid;
+    }
+
+    public int getId() {
+        return id;
+    }
+
+    public void setId(int id) {
+        this.id = id;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public double getPrice() {
+        return price;
+    }
+
+    public void setPrice(double price) {
+        this.price = price;
+    }
+
+    public String getDetail() {
+        return detail;
+    }
+
+    public void setDetail(String detail) {
+        this.detail = detail;
+    }
+
+    public String getScompany() {
+        return scompany;
+    }
+
+    public void setScompany(String scompany) {
+        this.scompany = scompany;
+    }
+
+    public String getImg() {
+        return img;
+    }
+
+    public void setImg(String img) {
+        this.img = img;
+    }
+
+    @Override
+    public String toString() {
+        return "Product{" +
+                "id=" + id +
+                ", name='" + name + '\'' +
+                ", price=" + price +
+                ", detail='" + detail + '\'' +
+                ", scompany='" + scompany + '\'' +
+                ", img='" + img + '\'' +
+                '}';
+    }
+}