|
|
@@ -1,5 +1,7 @@
|
|
|
package com.uas.platform.b2c.advertise.ad.model;
|
|
|
|
|
|
+import javax.persistence.*;
|
|
|
+import java.io.Serializable;
|
|
|
import java.util.Date;
|
|
|
|
|
|
/**
|
|
|
@@ -8,12 +10,16 @@ import java.util.Date;
|
|
|
* @author huxz
|
|
|
* @version 2017-03-03 10:44:16 创建文件
|
|
|
*/
|
|
|
-public class AdvantageCommodity {
|
|
|
+@Entity
|
|
|
+@Table(name = "store$advantagecommodity")
|
|
|
+public class AdvantageCommodity implements Serializable {
|
|
|
|
|
|
/**
|
|
|
* 主键UUID
|
|
|
*/
|
|
|
- private String id;
|
|
|
+ @Id
|
|
|
+ @GeneratedValue(strategy = GenerationType.AUTO)
|
|
|
+ private Long id;
|
|
|
|
|
|
/*=========================================================================
|
|
|
* 基础信息
|
|
|
@@ -22,64 +28,77 @@ public class AdvantageCommodity {
|
|
|
/**
|
|
|
* 创建时间
|
|
|
*/
|
|
|
+ @Column(name ="ad_create_time")
|
|
|
private Date createTime;
|
|
|
|
|
|
/**
|
|
|
* 修改时间
|
|
|
*/
|
|
|
+ @Column(name = "ad_update_time")
|
|
|
private Date updateTime;
|
|
|
|
|
|
/**
|
|
|
* 排序
|
|
|
*/
|
|
|
- private int order;
|
|
|
+ @Column(name = "ad_order")
|
|
|
+ private Integer order;
|
|
|
|
|
|
/*=========================================================================
|
|
|
* 商品基础信息
|
|
|
*=========================================================================*/
|
|
|
+
|
|
|
/**
|
|
|
* 商品批次号
|
|
|
*/
|
|
|
+ @Column(name = "ad_com_batchCode")
|
|
|
private String batchCode;
|
|
|
|
|
|
/**
|
|
|
* 对应的器件uuid
|
|
|
*/
|
|
|
+ @Column(name = "ad_com_uuid")
|
|
|
private String comUuid;
|
|
|
|
|
|
/**
|
|
|
* 原厂型号
|
|
|
*/
|
|
|
+ @Column(name = "ad_com_code")
|
|
|
private String comCode;
|
|
|
|
|
|
/**
|
|
|
* 图片path
|
|
|
*/
|
|
|
+ @Column(name = "ad_com_img")
|
|
|
private String comImg;
|
|
|
|
|
|
/**
|
|
|
* 类名UUID
|
|
|
*/
|
|
|
+ @Column(name = "ad_kind_uuid")
|
|
|
private String kindUuid;
|
|
|
|
|
|
/**
|
|
|
* 类目的名称
|
|
|
*/
|
|
|
+ @Column(name = "ad_kind_name_cn")
|
|
|
private String kindNameCn;
|
|
|
|
|
|
/**
|
|
|
* 品牌中文名称
|
|
|
*/
|
|
|
+ @Column(name = "ad_brand_name_cn")
|
|
|
private String brandNameCn;
|
|
|
|
|
|
/**
|
|
|
* 本批次的最低人民币价格
|
|
|
*/
|
|
|
+ @Column(name = "ad_min_price_rmb")
|
|
|
private Double minPriceRMB;
|
|
|
|
|
|
/**
|
|
|
* 本批次的最低美元价格
|
|
|
*/
|
|
|
+ @Column(name = "ad_min_price_usd")
|
|
|
private Double minPriceUSD;
|
|
|
|
|
|
/*=========================================================================
|
|
|
@@ -89,282 +108,134 @@ public class AdvantageCommodity {
|
|
|
/**
|
|
|
* 店铺所属公司
|
|
|
*/
|
|
|
+ @Column(name = "ad_store_enuu")
|
|
|
private Long storeEnUU;
|
|
|
|
|
|
/**
|
|
|
* 店铺UUID
|
|
|
*/
|
|
|
+ @Column(name = "ad_store_uuid")
|
|
|
private String storeUuid;
|
|
|
|
|
|
public AdvantageCommodity() {
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets id.
|
|
|
- *
|
|
|
- * @return the id
|
|
|
- */
|
|
|
- public String getId() {
|
|
|
+ public Long getId() {
|
|
|
return id;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets id.
|
|
|
- *
|
|
|
- * @param id the id
|
|
|
- */
|
|
|
- public void setId(String id) {
|
|
|
+ public void setId(Long id) {
|
|
|
this.id = id;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets create time.
|
|
|
- *
|
|
|
- * @return the create time
|
|
|
- */
|
|
|
public Date getCreateTime() {
|
|
|
return createTime;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets create time.
|
|
|
- *
|
|
|
- * @param createTime the create time
|
|
|
- */
|
|
|
public void setCreateTime(Date createTime) {
|
|
|
this.createTime = createTime;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets update time.
|
|
|
- *
|
|
|
- * @return the update time
|
|
|
- */
|
|
|
public Date getUpdateTime() {
|
|
|
return updateTime;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets update time.
|
|
|
- *
|
|
|
- * @param updateTime the update time
|
|
|
- */
|
|
|
public void setUpdateTime(Date updateTime) {
|
|
|
this.updateTime = updateTime;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets order.
|
|
|
- *
|
|
|
- * @return the order
|
|
|
- */
|
|
|
public int getOrder() {
|
|
|
return order;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets order.
|
|
|
- *
|
|
|
- * @param order the order
|
|
|
- */
|
|
|
public void setOrder(int order) {
|
|
|
this.order = order;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets batch code.
|
|
|
- *
|
|
|
- * @return the batch code
|
|
|
- */
|
|
|
public String getBatchCode() {
|
|
|
return batchCode;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets batch code.
|
|
|
- *
|
|
|
- * @param batchCode the batch code
|
|
|
- */
|
|
|
public void setBatchCode(String batchCode) {
|
|
|
this.batchCode = batchCode;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets com uuid.
|
|
|
- *
|
|
|
- * @return the com uuid
|
|
|
- */
|
|
|
public String getComUuid() {
|
|
|
return comUuid;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets com uuid.
|
|
|
- *
|
|
|
- * @param comUuid the com uuid
|
|
|
- */
|
|
|
public void setComUuid(String comUuid) {
|
|
|
this.comUuid = comUuid;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets com code.
|
|
|
- *
|
|
|
- * @return the com code
|
|
|
- */
|
|
|
public String getComCode() {
|
|
|
return comCode;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets com code.
|
|
|
- *
|
|
|
- * @param comCode the com code
|
|
|
- */
|
|
|
public void setComCode(String comCode) {
|
|
|
this.comCode = comCode;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets com img.
|
|
|
- *
|
|
|
- * @return the com img
|
|
|
- */
|
|
|
public String getComImg() {
|
|
|
return comImg;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets com img.
|
|
|
- *
|
|
|
- * @param comImg the com img
|
|
|
- */
|
|
|
public void setComImg(String comImg) {
|
|
|
this.comImg = comImg;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets kind uuid.
|
|
|
- *
|
|
|
- * @return the kind uuid
|
|
|
- */
|
|
|
public String getKindUuid() {
|
|
|
return kindUuid;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets kind uuid.
|
|
|
- *
|
|
|
- * @param kindUuid the kind uuid
|
|
|
- */
|
|
|
public void setKindUuid(String kindUuid) {
|
|
|
this.kindUuid = kindUuid;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets kind name cn.
|
|
|
- *
|
|
|
- * @return the kind name cn
|
|
|
- */
|
|
|
public String getKindNameCn() {
|
|
|
return kindNameCn;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets kind name cn.
|
|
|
- *
|
|
|
- * @param kindNameCn the kind name cn
|
|
|
- */
|
|
|
public void setKindNameCn(String kindNameCn) {
|
|
|
this.kindNameCn = kindNameCn;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets brand name cn.
|
|
|
- *
|
|
|
- * @return the brand name cn
|
|
|
- */
|
|
|
public String getBrandNameCn() {
|
|
|
return brandNameCn;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets brand name cn.
|
|
|
- *
|
|
|
- * @param brandNameCn the brand name cn
|
|
|
- */
|
|
|
public void setBrandNameCn(String brandNameCn) {
|
|
|
this.brandNameCn = brandNameCn;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets min price rmb.
|
|
|
- *
|
|
|
- * @return the min price rmb
|
|
|
- */
|
|
|
public Double getMinPriceRMB() {
|
|
|
return minPriceRMB;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets min price rmb.
|
|
|
- *
|
|
|
- * @param minPriceRMB the min price rmb
|
|
|
- */
|
|
|
public void setMinPriceRMB(Double minPriceRMB) {
|
|
|
this.minPriceRMB = minPriceRMB;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets min price usd.
|
|
|
- *
|
|
|
- * @return the min price usd
|
|
|
- */
|
|
|
public Double getMinPriceUSD() {
|
|
|
return minPriceUSD;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets min price usd.
|
|
|
- *
|
|
|
- * @param minPriceUSD the min price usd
|
|
|
- */
|
|
|
public void setMinPriceUSD(Double minPriceUSD) {
|
|
|
this.minPriceUSD = minPriceUSD;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets store en uu.
|
|
|
- *
|
|
|
- * @return the store en uu
|
|
|
- */
|
|
|
public Long getStoreEnUU() {
|
|
|
return storeEnUU;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets store en uu.
|
|
|
- *
|
|
|
- * @param storeEnUU the store en uu
|
|
|
- */
|
|
|
public void setStoreEnUU(Long storeEnUU) {
|
|
|
this.storeEnUU = storeEnUU;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Gets store uuid.
|
|
|
- *
|
|
|
- * @return the store uuid
|
|
|
- */
|
|
|
public String getStoreUuid() {
|
|
|
return storeUuid;
|
|
|
}
|
|
|
|
|
|
- /**
|
|
|
- * Sets store uuid.
|
|
|
- *
|
|
|
- * @param storeUuid the store uuid
|
|
|
- */
|
|
|
public void setStoreUuid(String storeUuid) {
|
|
|
this.storeUuid = storeUuid;
|
|
|
}
|