Authored by wangnan9279

模糊搜索加入ufo货号

@@ -719,6 +719,9 @@ @@ -719,6 +719,9 @@
719 "cutdownPriceActivityIds": { 719 "cutdownPriceActivityIds": {
720 "type": "text", 720 "type": "text",
721 "analyzer": "comma_spliter" 721 "analyzer": "comma_spliter"
  722 + },
  723 + "ufoProductCode": {
  724 + "type": "keyword"
722 } 725 }
723 } 726 }
724 } 727 }
@@ -137,6 +137,7 @@ public class ProductIndexBO extends ProductIBO implements Serializable { @@ -137,6 +137,7 @@ public class ProductIndexBO extends ProductIBO implements Serializable {
137 //Ufo 137 //Ufo
138 private String isUfo = "N"; 138 private String isUfo = "N";
139 private Integer ufoBrandId; 139 private Integer ufoBrandId;
  140 + private String ufoProductCode;
140 141
141 //from collage_product 142 //from collage_product
142 private String collageActivityIds; 143 private String collageActivityIds;
@@ -144,6 +145,14 @@ public class ProductIndexBO extends ProductIBO implements Serializable { @@ -144,6 +145,14 @@ public class ProductIndexBO extends ProductIBO implements Serializable {
144 //from cutdown_price_activity 145 //from cutdown_price_activity
145 private String cutdownPriceActivityIds; 146 private String cutdownPriceActivityIds;
146 147
  148 + public String getUfoProductCode() {
  149 + return ufoProductCode;
  150 + }
  151 +
  152 + public void setUfoProductCode(String ufoProductCode) {
  153 + this.ufoProductCode = ufoProductCode;
  154 + }
  155 +
147 public String getCutdownPriceActivityIds() { 156 public String getCutdownPriceActivityIds() {
148 return cutdownPriceActivityIds; 157 return cutdownPriceActivityIds;
149 } 158 }
@@ -212,6 +212,7 @@ public class ProductIndexBOToMapService { @@ -212,6 +212,7 @@ public class ProductIndexBOToMapService {
212 212
213 map.put(ProductIndexEsField.isUfo, productIndexBO.getIsUfo()); 213 map.put(ProductIndexEsField.isUfo, productIndexBO.getIsUfo());
214 map.put(ProductIndexEsField.ufoBrandId, productIndexBO.getUfoBrandId()); 214 map.put(ProductIndexEsField.ufoBrandId, productIndexBO.getUfoBrandId());
  215 + map.put(ProductIndexEsField.ufoProductCode, productIndexBO.getUfoProductCode());
215 216
216 map.put(ProductIndexEsField.cutdownPriceActivityIds, productIndexBO.getCutdownPriceActivityIds()); 217 map.put(ProductIndexEsField.cutdownPriceActivityIds, productIndexBO.getCutdownPriceActivityIds());
217 218
@@ -23,6 +23,7 @@ public class UfoToYohoGeneralService { @@ -23,6 +23,7 @@ public class UfoToYohoGeneralService {
23 productIndexBO.setId("ufo-" + ufoProduct.getId()); 23 productIndexBO.setId("ufo-" + ufoProduct.getId());
24 productIndexBO.setProductSkn(ufoProduct.getId()); 24 productIndexBO.setProductSkn(ufoProduct.getId());
25 productIndexBO.setProductName(ufoProduct.getProductName()); 25 productIndexBO.setProductName(ufoProduct.getProductName());
  26 + productIndexBO.setUfoProductCode(ufoProduct.getProductCode());
26 productIndexBO.setProductKeyword(ufoProduct.getKeyWords()); 27 productIndexBO.setProductKeyword(ufoProduct.getKeyWords());
27 //状态 28 //状态
28 productIndexBO.setStatus(1); 29 productIndexBO.setStatus(1);