Authored by hugufei

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

... ... @@ -63,6 +63,12 @@ public class WebProductIndexBaseService {
productIndexIncludeFields.add(ProductIndexEsField.tblBrandId);
productIndexIncludeFields.add(ProductIndexEsField.tblCountryId);
productIndexIncludeFields.add(ProductIndexEsField.tblCountryName);
//for seo
productIndexIncludeFields.add(ProductIndexEsField.smallSortName);
productIndexIncludeFields.add(ProductIndexEsField.brandName);
productIndexIncludeFields.add(ProductIndexEsField.brandNameCn);
productIndexIncludeFields.add(ProductIndexEsField.brandNameEn);
}
public List<String> getWebProductIndexIncludeFields() {
... ... @@ -123,6 +129,11 @@ public class WebProductIndexBaseService {
productMap.put("tbl_country_name", MapUtils.getString(map, ProductIndexEsField.tblCountryName, ""));
productMap.put("tbl_plane", (tbl_country_id > 0 && tbl_country_id != 86) ? "Y" : "N");
// for seo
productMap.put("small_sort_name", MapUtils.getString(map, ProductIndexEsField.smallSortName, ""));
productMap.put("brand_name", MapUtils.getString(map, ProductIndexEsField.brandName, ""));
productMap.put("brand_name_cn", MapUtils.getString(map, ProductIndexEsField.brandNameCn, ""));
productMap.put("brand_name_en", MapUtils.getString(map, ProductIndexEsField.brandNameEn, ""));
return productMap;
}
... ...