|
@@ -0,0 +1,190 @@
|
|
|
+package com.macro.mall.search.domain;
|
|
|
+
|
|
|
+import org.springframework.data.elasticsearch.annotations.Document;
|
|
|
+
|
|
|
+import java.io.Serializable;
|
|
|
+import java.math.BigDecimal;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 搜索中的商品信息
|
|
|
+ * Created by macro on 2018/6/19.
|
|
|
+ */
|
|
|
+@Document(indexName = "pms", type = "product")
|
|
|
+public class EsProduct implements Serializable {
|
|
|
+ private static final long serialVersionUID = -1L;
|
|
|
+ private Long id;
|
|
|
+ private String productSn;
|
|
|
+ private Long brandId;
|
|
|
+ private String brandName;
|
|
|
+ private Long productCategoryId;
|
|
|
+ private String productCategoryName;
|
|
|
+ private String pic;
|
|
|
+ private String name;
|
|
|
+ private String subTitle;
|
|
|
+ private BigDecimal price;
|
|
|
+ private Integer sale;
|
|
|
+ private Integer newStatus;
|
|
|
+ private Integer recommandStatus;
|
|
|
+ private Integer stock;
|
|
|
+ private Integer promotionType;
|
|
|
+ private Integer sort;
|
|
|
+ private List<EsProductAttrValue> attrValueList;
|
|
|
+
|
|
|
+ public Long getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(Long id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getProductSn() {
|
|
|
+ return productSn;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProductSn(String productSn) {
|
|
|
+ this.productSn = productSn;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getBrandId() {
|
|
|
+ return brandId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBrandId(Long brandId) {
|
|
|
+ this.brandId = brandId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getBrandName() {
|
|
|
+ return brandName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setBrandName(String brandName) {
|
|
|
+ this.brandName = brandName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getProductCategoryId() {
|
|
|
+ return productCategoryId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProductCategoryId(Long productCategoryId) {
|
|
|
+ this.productCategoryId = productCategoryId;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getProductCategoryName() {
|
|
|
+ return productCategoryName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setProductCategoryName(String productCategoryName) {
|
|
|
+ this.productCategoryName = productCategoryName;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getPic() {
|
|
|
+ return pic;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPic(String pic) {
|
|
|
+ this.pic = pic;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getName() {
|
|
|
+ return name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setName(String name) {
|
|
|
+ this.name = name;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getSubTitle() {
|
|
|
+ return subTitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSubTitle(String subTitle) {
|
|
|
+ this.subTitle = subTitle;
|
|
|
+ }
|
|
|
+
|
|
|
+ public BigDecimal getPrice() {
|
|
|
+ return price;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPrice(BigDecimal price) {
|
|
|
+ this.price = price;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getSale() {
|
|
|
+ return sale;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSale(Integer sale) {
|
|
|
+ this.sale = sale;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getNewStatus() {
|
|
|
+ return newStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setNewStatus(Integer newStatus) {
|
|
|
+ this.newStatus = newStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getRecommandStatus() {
|
|
|
+ return recommandStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setRecommandStatus(Integer recommandStatus) {
|
|
|
+ this.recommandStatus = recommandStatus;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getStock() {
|
|
|
+ return stock;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setStock(Integer stock) {
|
|
|
+ this.stock = stock;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getPromotionType() {
|
|
|
+ return promotionType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setPromotionType(Integer promotionType) {
|
|
|
+ this.promotionType = promotionType;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Integer getSort() {
|
|
|
+ return sort;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setSort(Integer sort) {
|
|
|
+ this.sort = sort;
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<EsProductAttrValue> getAttrValueList() {
|
|
|
+ return attrValueList;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setAttrValueList(List<EsProductAttrValue> attrValueList) {
|
|
|
+ this.attrValueList = attrValueList;
|
|
|
+ }
|
|
|
+
|
|
|
+ static class EsProductAttrValue {
|
|
|
+ private Long id;
|
|
|
+ private String value;
|
|
|
+
|
|
|
+ public String getValue() {
|
|
|
+ return value;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setValue(String value) {
|
|
|
+ this.value = value;
|
|
|
+ }
|
|
|
+
|
|
|
+ public Long getId() {
|
|
|
+ return id;
|
|
|
+ }
|
|
|
+
|
|
|
+ public void setId(Long id) {
|
|
|
+ this.id = id;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|