diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..f6052a9 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,82 @@ + + + + + + + + + + + + + + + { + "customColor": "", + "associatedIndex": 3 +} + + + + + + + + + + 1776764786202 + + + + + + + + + + \ No newline at end of file diff --git a/parkingmanagement-SpringProject/src/com/ssm/aop/xml/Product.java b/parkingmanagement-SpringProject/src/com/ssm/aop/xml/Product.java new file mode 100644 index 0000000..bc4e553 --- /dev/null +++ b/parkingmanagement-SpringProject/src/com/ssm/aop/xml/Product.java @@ -0,0 +1,127 @@ +package com.ssm.aop.xml; + +public class Product { + private Integer pid; + + private String pname; + + private Double marketPrice; + + private Double shopPrice; + + private String image; + + private String pdesc; + + private Integer isHot; + + private String pdate; + + private Category category; + + private Integer state; + + public Integer getState() { + return state; + } + + public void setState(Integer state) { + this.state = state; + } + + public Integer getPid() { + return pid; + } + + public void setPid(Integer pid) { + this.pid = pid; + } + + public String getPname() { + return pname; + } + + public void setPname(String pname) { + this.pname = pname == null ? null : pname.trim(); + } + + public Double getMarketPrice() { + return marketPrice; + } + + public void setMarketPrice(Double marketPrice) { + this.marketPrice = marketPrice; + } + + public Double getShopPrice() { + return shopPrice; + } + + public void setShopPrice(Double shopPrice) { + this.shopPrice = shopPrice; + } + + public String getImage() { + return image; + } + + public void setImage(String image) { + this.image = image == null ? null : image.trim(); + } + + public String getPdesc() { + return pdesc; + } + + public void setPdesc(String pdesc) { + this.pdesc = pdesc == null ? null : pdesc.trim(); + } + + public Integer getIsHot() { + return isHot; + } + + public void setIsHot(Integer isHot) { + this.isHot = isHot; + } + + public String getPdate() { + return pdate; + } + + public void setPdate(String pdate) { + this.pdate = pdate; + } + + public Category getCategory() { + return category; + } + + public void setCategory(Category category) { + this.category = category; + } + + @Override + public String toString() { + return "Product{" + + "pid=" + pid + + ", pname='" + pname + '\'' + + ", marketPrice=" + marketPrice + + ", shopPrice=" + shopPrice + + ", image='" + image + '\'' + + ", pdesc='" + pdesc + '\'' + + ", isHot=" + isHot + + ", pdate=" + pdate + + ", categoryName=" + category.getCname() + + ", state=" + state + + '}'; + } + + public void printInfo() { + System.out.println("产品名称:" + pname); + System.out.println("产品售价:" + shopPrice); + System.out.println("分类编号:" + category.getCid()); + System.out.println("分类名称:" + category.getCname()); + } + +} \ No newline at end of file