123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336 |
- package com.miniframe.model.system;
- import com.miniframe.system.MiniserviceBaseModel;
- import java.io.Serializable;
- import java.util.Date;
- import javax.persistence.*;
- public class Goods extends MiniserviceBaseModel implements Serializable {
- @Id
- private String id;
- private String name;
- /**
- * 描述
- */
- private String description;
- @Column(name = "create_time")
- private Date createTime;
- @Column(name = "update_time")
- private Date updateTime;
- /**
- * 原价
- */
- private String price;
- /**
- * 销售价
- */
- @Column(name = "sale_price")
- private String salePrice;
- /**
- * 计价单位 1-*数量 0-一次整体
- */
- @Column(name = "sale_unit")
- private String saleUnit;
- /**
- * 商品编码
- */
- @Column(name = "goods_code")
- private String goodsCode;
- /**
- * 价格介质 1-积分 2-人民币
- */
- @Column(name = "price_media")
- private String priceMedia;
- /**
- * 1-充值 2-增加子账户上限
- */
- private String type;
- /**
- * 购买的商品数量
- */
- @Column(name = "return_goods")
- private String returnGoods;
- /**
- * 折扣设置
- */
- private String discount;
- /**
- * 商品说明
- */
- private String remarks;
- /**
- * 子类型
- */
- @Column(name = "sub_type")
- private String subType;
- private static final long serialVersionUID = 1L;
- /**
- * @return id
- */
- public String getId() {
- return id;
- }
- /**
- * @param id
- */
- public void setId(String id) {
- this.id = id == null ? null : id.trim();
- }
- /**
- * @return name
- */
- public String getName() {
- return name;
- }
- /**
- * @param name
- */
- public void setName(String name) {
- this.name = name == null ? null : name.trim();
- }
- /**
- * 获取描述
- *
- * @return description - 描述
- */
- public String getDescription() {
- return description;
- }
- /**
- * 设置描述
- *
- * @param description 描述
- */
- public void setDescription(String description) {
- this.description = description == null ? null : description.trim();
- }
- /**
- * @return create_time
- */
- public Date getCreateTime() {
- return createTime;
- }
- /**
- * @param createTime
- */
- public void setCreateTime(Date createTime) {
- this.createTime = createTime;
- }
- /**
- * @return update_time
- */
- public Date getUpdateTime() {
- return updateTime;
- }
- /**
- * @param updateTime
- */
- public void setUpdateTime(Date updateTime) {
- this.updateTime = updateTime;
- }
- /**
- * 获取原价
- *
- * @return price - 原价
- */
- public String getPrice() {
- return price;
- }
- /**
- * 设置原价
- *
- * @param price 原价
- */
- public void setPrice(String price) {
- this.price = price == null ? null : price.trim();
- }
- /**
- * 获取销售价
- *
- * @return sale_price - 销售价
- */
- public String getSalePrice() {
- return salePrice;
- }
- /**
- * 设置销售价
- *
- * @param salePrice 销售价
- */
- public void setSalePrice(String salePrice) {
- this.salePrice = salePrice == null ? null : salePrice.trim();
- }
- /**
- * 获取计价单位 1-*数量 0-一次整体
- *
- * @return sale_unit - 计价单位 1-*数量 0-一次整体
- */
- public String getSaleUnit() {
- return saleUnit;
- }
- /**
- * 设置计价单位 1-*数量 0-一次整体
- *
- * @param saleUnit 计价单位 1-*数量 0-一次整体
- */
- public void setSaleUnit(String saleUnit) {
- this.saleUnit = saleUnit == null ? null : saleUnit.trim();
- }
- /**
- * 获取商品编码
- *
- * @return goods_code - 商品编码
- */
- public String getGoodsCode() {
- return goodsCode;
- }
- /**
- * 设置商品编码
- *
- * @param goodsCode 商品编码
- */
- public void setGoodsCode(String goodsCode) {
- this.goodsCode = goodsCode == null ? null : goodsCode.trim();
- }
- /**
- * 获取价格介质 1-积分 2-人民币
- *
- * @return price_media - 价格介质 1-积分 2-人民币
- */
- public String getPriceMedia() {
- return priceMedia;
- }
- /**
- * 设置价格介质 1-积分 2-人民币
- *
- * @param priceMedia 价格介质 1-积分 2-人民币
- */
- public void setPriceMedia(String priceMedia) {
- this.priceMedia = priceMedia == null ? null : priceMedia.trim();
- }
- /**
- * 获取1-充值 2-增加子账户上限
- *
- * @return type - 1-充值 2-增加子账户上限
- */
- public String getType() {
- return type;
- }
- /**
- * 设置1-充值 2-增加子账户上限
- *
- * @param type 1-充值 2-增加子账户上限
- */
- public void setType(String type) {
- this.type = type == null ? null : type.trim();
- }
- /**
- * 获取购买的商品数量
- *
- * @return return_goods - 购买的商品数量
- */
- public String getReturnGoods() {
- return returnGoods;
- }
- /**
- * 设置购买的商品数量
- *
- * @param returnGoods 购买的商品数量
- */
- public void setReturnGoods(String returnGoods) {
- this.returnGoods = returnGoods == null ? null : returnGoods.trim();
- }
- /**
- * 获取折扣设置
- *
- * @return discount - 折扣设置
- */
- public String getDiscount() {
- return discount;
- }
- /**
- * 设置折扣设置
- *
- * @param discount 折扣设置
- */
- public void setDiscount(String discount) {
- this.discount = discount == null ? null : discount.trim();
- }
- /**
- * 获取商品说明
- *
- * @return remarks - 商品说明
- */
- public String getRemarks() {
- return remarks;
- }
- /**
- * 设置商品说明
- *
- * @param remarks 商品说明
- */
- public void setRemarks(String remarks) {
- this.remarks = remarks == null ? null : remarks.trim();
- }
- /**
- * 获取子类型
- *
- * @return sub_type - 子类型
- */
- public String getSubType() {
- return subType;
- }
- /**
- * 设置子类型
- *
- * @param subType 子类型
- */
- public void setSubType(String subType) {
- this.subType = subType == null ? null : subType.trim();
- }
- }
|