Authored by hugufei

召回时添加价格带的召回

@@ -77,8 +77,9 @@ public class BatchRecallCacheBean extends AbstractCacheBean<RecallRequest,Recall @@ -77,8 +77,9 @@ public class BatchRecallCacheBean extends AbstractCacheBean<RecallRequest,Recall
77 Integer productSkn = MapUtils.getInteger(result, ProductIndexEsField.productSkn, 0); 77 Integer productSkn = MapUtils.getInteger(result, ProductIndexEsField.productSkn, 0);
78 Integer brandId = MapUtils.getInteger(result, ProductIndexEsField.brandId, 0); 78 Integer brandId = MapUtils.getInteger(result, ProductIndexEsField.brandId, 0);
79 Integer middleSortId = MapUtils.getInteger(result, ProductIndexEsField.middleSortId, 0); 79 Integer middleSortId = MapUtils.getInteger(result, ProductIndexEsField.middleSortId, 0);
  80 + Integer priceArea = MapUtils.getInteger(result, ProductIndexEsField.priceArea, 0);
80 String factor = MapUtils.getString(result, ProductIndexEsField.productFeatureFactor, ""); 81 String factor = MapUtils.getString(result, ProductIndexEsField.productFeatureFactor, "");
81 - recallSkns.add(new RecallResponse.RecallSkn(productSkn, brandId, middleSortId)); 82 + recallSkns.add(new RecallResponse.RecallSkn(productSkn, brandId, middleSortId,priceArea));
82 productFactorMap.put(productSkn,factor); 83 productFactorMap.put(productSkn,factor);
83 } 84 }
84 //2、将skn向量加入缓存-可节省一次ES查询 85 //2、将skn向量加入缓存-可节省一次ES查询
@@ -26,7 +26,7 @@ public interface IRecallRequest { @@ -26,7 +26,7 @@ public interface IRecallRequest {
26 * @return 26 * @return
27 */ 27 */
28 default List<String> includeFields(){ 28 default List<String> includeFields(){
29 - return Arrays.asList(ProductIndexEsField.productSkn,ProductIndexEsField.brandId,ProductIndexEsField.middleSortId,ProductIndexEsField.productFeatureFactor); 29 + return Arrays.asList(ProductIndexEsField.productSkn,ProductIndexEsField.brandId,ProductIndexEsField.middleSortId,ProductIndexEsField.productFeatureFactor,ProductIndexEsField.priceArea);
30 } 30 }
31 31
32 } 32 }
@@ -51,11 +51,11 @@ public class RecallResponse implements Serializable { @@ -51,11 +51,11 @@ public class RecallResponse implements Serializable {
51 public RecallSkn() { 51 public RecallSkn() {
52 } 52 }
53 53
54 - public RecallSkn(Integer productSkn, Integer brandId, Integer middleSortId,Integer pa) { 54 + public RecallSkn(Integer productSkn, Integer brandId, Integer middleSortId,Integer priceArea) {
55 this.skn = productSkn; 55 this.skn = productSkn;
56 this.bdId = brandId; 56 this.bdId = brandId;
57 this.misId = middleSortId; 57 this.misId = middleSortId;
58 - this.pa = pa; 58 + this.pa = priceArea;
59 } 59 }
60 60
61 public Integer getSkn() { 61 public Integer getSkn() {