Authored by 胡古飞

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

... ... @@ -95,10 +95,14 @@ public class UfoStoragePriceIndexBuilder extends IIndexBuilder {
ufoStoragePriceIndexBO.setShowChannel(product.getShowChannel());
ufoStoragePriceIndexBO.setBrandId(product.getBrandId() == null ? 0 : product.getBrandId().intValue());
ufoStoragePriceIndexBO.setGender(product.getGender());
ufoStoragePriceIndexBO.setMaxSortId(product.getMaxSortId() == null ? 0 : product.getMaxSortId().intValue());
ufoStoragePriceIndexBO.setMidSortId(product.getMidSortId() == null ? 0 : product.getMidSortId().intValue());
} else {
ufoStoragePriceIndexBO.setShowChannel("");
ufoStoragePriceIndexBO.setBrandId(0);
ufoStoragePriceIndexBO.setGender("");
ufoStoragePriceIndexBO.setMaxSortId(0);
ufoStoragePriceIndexBO.setMidSortId(0);
}
// 2) 处理尺码
Short sizeId = storageId2SizeId.get(storagePrice.getStorageId());
... ...
... ... @@ -64,6 +64,12 @@
},
"gender": {
"type": "keyword"
},
"maxSortId": {
"type": "integer"
},
"midSortId": {
"type": "integer"
}
}
}
... ...
... ... @@ -7,6 +7,7 @@ import java.math.BigDecimal;
@Data
public class UfoStoragePriceIndexBO {
// from ufo.storage_price
private Integer id;
private Integer skup;
private Integer productId;
... ... @@ -19,19 +20,21 @@ public class UfoStoragePriceIndexBO {
private Integer preSaleFlag;
private Integer region;
//from ufo_product
//from ufo.product
private String showChannel;
private Integer brandId; //---品牌
private String gender; // --性别
private Integer maxSortId; // 大分类
private Integer midSortId; // 中分类
// 二手图片 from secondhand_images
// 二手图片 from ufo.secondhand_images
private String secondhandImage;
// from storage + size
// from ufo.storage + ufo.size
private Integer sizeId;
private String sizeName;
// from product_pool_detail
// from ufo.product_pool_detail
private String poolIds;
}
... ...