Authored by hugufei

pc列表返回品类和品牌名称

@@ -63,6 +63,12 @@ public class WebProductIndexBaseService { @@ -63,6 +63,12 @@ public class WebProductIndexBaseService {
63 productIndexIncludeFields.add(ProductIndexEsField.tblBrandId); 63 productIndexIncludeFields.add(ProductIndexEsField.tblBrandId);
64 productIndexIncludeFields.add(ProductIndexEsField.tblCountryId); 64 productIndexIncludeFields.add(ProductIndexEsField.tblCountryId);
65 productIndexIncludeFields.add(ProductIndexEsField.tblCountryName); 65 productIndexIncludeFields.add(ProductIndexEsField.tblCountryName);
  66 +
  67 + //for seo
  68 + productIndexIncludeFields.add(ProductIndexEsField.smallSortName);
  69 + productIndexIncludeFields.add(ProductIndexEsField.brandName);
  70 + productIndexIncludeFields.add(ProductIndexEsField.brandNameCn);
  71 + productIndexIncludeFields.add(ProductIndexEsField.brandNameEn);
66 } 72 }
67 73
68 public List<String> getWebProductIndexIncludeFields() { 74 public List<String> getWebProductIndexIncludeFields() {
@@ -123,6 +129,11 @@ public class WebProductIndexBaseService { @@ -123,6 +129,11 @@ public class WebProductIndexBaseService {
123 productMap.put("tbl_country_name", MapUtils.getString(map, ProductIndexEsField.tblCountryName, "")); 129 productMap.put("tbl_country_name", MapUtils.getString(map, ProductIndexEsField.tblCountryName, ""));
124 productMap.put("tbl_plane", (tbl_country_id > 0 && tbl_country_id != 86) ? "Y" : "N"); 130 productMap.put("tbl_plane", (tbl_country_id > 0 && tbl_country_id != 86) ? "Y" : "N");
125 131
  132 + // for seo
  133 + productMap.put("small_sort_name", MapUtils.getString(map, ProductIndexEsField.smallSortName, ""));
  134 + productMap.put("brand_name", MapUtils.getString(map, ProductIndexEsField.brandName, ""));
  135 + productMap.put("brand_name_cn", MapUtils.getString(map, ProductIndexEsField.brandNameCn, ""));
  136 + productMap.put("brand_name_en", MapUtils.getString(map, ProductIndexEsField.brandNameEn, ""));
126 return productMap; 137 return productMap;
127 } 138 }
128 139