www.pudn.com > shop.rar > GoodsBean.java
package com.soft136.shop.model;
public class GoodsBean {
private int goods_id;// 商品编号
private String goods_name;// 商品名称
private int type_id;// 商品类型编号
private double goods_price;// 商品价格
private double goods_dicount;// 折扣
private String goods_desc;// 商品描述
private String supplier;// 商户
private int qty;// 数量
private int ispreferred;// 是否为推荐商品
private String pic_url;// 商品图片
private int number;//购买数量
public GoodsBean(){}
public GoodsBean(int goods_id, String goods_name, int type_id,
double goods_price, double goods_dicount, String goods_desc,
String supplier, int qty, int ispreferred, String pic_url) {
super();
this.goods_id = goods_id;
this.goods_name = goods_name;
this.type_id = type_id;
this.goods_price = goods_price;
this.goods_dicount = goods_dicount;
this.goods_desc = goods_desc;
this.supplier = supplier;
this.qty = qty;
this.ispreferred = ispreferred;
this.pic_url = pic_url;
}
public GoodsBean(int goods_id, String goods_name, int type_id,
double goods_price, double goods_dicount, String goods_desc,
String supplier, int qty, int ispreferred, String pic_url,int number) {
super();
this.goods_id = goods_id;
this.goods_name = goods_name;
this.type_id = type_id;
this.goods_price = goods_price;
this.goods_dicount = goods_dicount;
this.goods_desc = goods_desc;
this.supplier = supplier;
this.qty = qty;
this.ispreferred = ispreferred;
this.pic_url = pic_url;
this.number=number;
}
public int getNumber() {
return number;
}
public void setNumber(int number) {
this.number = number;
}
public int getGoods_id() {
return goods_id;
}
public void setGoods_id(int goods_id) {
this.goods_id = goods_id;
}
public String getGoods_name() {
return goods_name;
}
public void setGoods_name(String goods_name) {
this.goods_name = goods_name;
}
public int getType_id() {
return type_id;
}
public void setType_id(int type_id) {
this.type_id = type_id;
}
public double getGoods_price() {
return goods_price;
}
public void setGoods_price(double goods_price) {
this.goods_price = goods_price;
}
public String getGoods_desc() {
return goods_desc;
}
public void setGoods_desc(String goods_desc) {
this.goods_desc = goods_desc;
}
public String getSupplier() {
return supplier;
}
public void setSupplier(String supplier) {
this.supplier = supplier;
}
public int getQty() {
return qty;
}
public void setQty(int qty) {
this.qty = qty;
}
public int getIspreferred() {
return ispreferred;
}
public void setIspreferred(int ispreferred) {
this.ispreferred = ispreferred;
}
public String getPic_url() {
return pic_url;
}
public void setPic_url(String pic_url) {
this.pic_url = pic_url;
}
public double getGoods_dicount() {
return goods_dicount;
}
public void setGoods_dicount(double goods_dicount) {
this.goods_dicount = goods_dicount;
}
}