Authored by 胡古飞

ufo库存价格索引添加分类字段

@@ -95,10 +95,14 @@ public class UfoStoragePriceIndexBuilder extends IIndexBuilder { @@ -95,10 +95,14 @@ public class UfoStoragePriceIndexBuilder extends IIndexBuilder {
95 ufoStoragePriceIndexBO.setShowChannel(product.getShowChannel()); 95 ufoStoragePriceIndexBO.setShowChannel(product.getShowChannel());
96 ufoStoragePriceIndexBO.setBrandId(product.getBrandId() == null ? 0 : product.getBrandId().intValue()); 96 ufoStoragePriceIndexBO.setBrandId(product.getBrandId() == null ? 0 : product.getBrandId().intValue());
97 ufoStoragePriceIndexBO.setGender(product.getGender()); 97 ufoStoragePriceIndexBO.setGender(product.getGender());
  98 + ufoStoragePriceIndexBO.setMaxSortId(product.getMaxSortId() == null ? 0 : product.getMaxSortId().intValue());
  99 + ufoStoragePriceIndexBO.setMidSortId(product.getMidSortId() == null ? 0 : product.getMidSortId().intValue());
98 } else { 100 } else {
99 ufoStoragePriceIndexBO.setShowChannel(""); 101 ufoStoragePriceIndexBO.setShowChannel("");
100 ufoStoragePriceIndexBO.setBrandId(0); 102 ufoStoragePriceIndexBO.setBrandId(0);
101 ufoStoragePriceIndexBO.setGender(""); 103 ufoStoragePriceIndexBO.setGender("");
  104 + ufoStoragePriceIndexBO.setMaxSortId(0);
  105 + ufoStoragePriceIndexBO.setMidSortId(0);
102 } 106 }
103 // 2) 处理尺码 107 // 2) 处理尺码
104 Short sizeId = storageId2SizeId.get(storagePrice.getStorageId()); 108 Short sizeId = storageId2SizeId.get(storagePrice.getStorageId());
@@ -64,6 +64,12 @@ @@ -64,6 +64,12 @@
64 }, 64 },
65 "gender": { 65 "gender": {
66 "type": "keyword" 66 "type": "keyword"
  67 + },
  68 + "maxSortId": {
  69 + "type": "integer"
  70 + },
  71 + "midSortId": {
  72 + "type": "integer"
67 } 73 }
68 } 74 }
69 } 75 }
@@ -7,6 +7,7 @@ import java.math.BigDecimal; @@ -7,6 +7,7 @@ import java.math.BigDecimal;
7 @Data 7 @Data
8 public class UfoStoragePriceIndexBO { 8 public class UfoStoragePriceIndexBO {
9 9
  10 + // from ufo.storage_price
10 private Integer id; 11 private Integer id;
11 private Integer skup; 12 private Integer skup;
12 private Integer productId; 13 private Integer productId;
@@ -19,19 +20,21 @@ public class UfoStoragePriceIndexBO { @@ -19,19 +20,21 @@ public class UfoStoragePriceIndexBO {
19 private Integer preSaleFlag; 20 private Integer preSaleFlag;
20 private Integer region; 21 private Integer region;
21 22
22 - //from ufo_product 23 + //from ufo.product
23 private String showChannel; 24 private String showChannel;
24 private Integer brandId; //---品牌 25 private Integer brandId; //---品牌
25 private String gender; // --性别 26 private String gender; // --性别
  27 + private Integer maxSortId; // 大分类
  28 + private Integer midSortId; // 中分类
26 29
27 - // 二手图片 from secondhand_images 30 + // 二手图片 from ufo.secondhand_images
28 private String secondhandImage; 31 private String secondhandImage;
29 32
30 - // from storage + size 33 + // from ufo.storage + ufo.size
31 private Integer sizeId; 34 private Integer sizeId;
32 private String sizeName; 35 private String sizeName;
33 36
34 - // from product_pool_detail 37 + // from ufo.product_pool_detail
35 private String poolIds; 38 private String poolIds;
36 39
37 } 40 }