Authored by unknown

添加skuids

... ... @@ -36,6 +36,7 @@ public abstract class AbstractStorageRelatedMqListener extends AbstractIndexMqLi
indexData.put("sizeNames", "");
indexData.put("breakSizePercent", 100);
indexData.put("heatValue", 0);
indexData.put("skuIds", "");
return;
}
ProductSizesBO productSizesBO = productSizesBOList.get(0);
... ... @@ -47,6 +48,7 @@ public abstract class AbstractStorageRelatedMqListener extends AbstractIndexMqLi
indexData.put("sizeNames", productSizesBO.getSizeNames());
indexData.put("breakSizePercent", productSizesBO.getBreakSizePercent());
indexData.put("heatValue", productSizesBO.getHeatValue());
indexData.put("skuIds", productSizesBO.getSkuIds());
}
protected void fillColor(Map<String, Object> indexData, Integer productId) {
... ...
... ... @@ -502,6 +502,11 @@
"breakSizePercent": {
"type": "double"
},
"skuIds": {
"type": "string",
"analyzer": "comma_spliter",
"search_analyzer": "ik_complex_search"
},
"styleIds": {
"type": "string",
"analyzer": "comma_spliter"
... ...
... ... @@ -55,6 +55,7 @@ public class ProductIndexBO extends ProductIBO implements Serializable {
private String sizeIds;
private String sizeNames;
private double breakSizePercent;
private String skuIds;
// from product_15day_salesnum
private Integer salesNum;
... ... @@ -657,4 +658,12 @@ public class ProductIndexBO extends ProductIBO implements Serializable {
this.specialSearchFieldVideo = specialSearchFieldVideo;
}
public String getSkuIds() {
return skuIds;
}
public void setSkuIds(String skuIds) {
this.skuIds = skuIds;
}
}
\ No newline at end of file
... ...
... ... @@ -6,11 +6,11 @@ public class ProductSizesBO {
private Integer productId;
private Integer storageNum;
private String skuIds;// 当前有效的sku列表
private String sizeIds;// 当前有效的尺码ids
private double breakSizePercent;//断码率
private String sizeNames;// 当前有效的颜色名称
private BigDecimal heatValue;
private String skuIds;// 当前有效的sku列表
public Integer getProductId() {
return productId;
... ...
... ... @@ -20,7 +20,7 @@ public class ProductSizesBuilder implements ViewBuilder {
@Autowired
private ProductSizesLogicService productSizesLogicService;
@Override
public void build(List<ProductIndexBO> productIndexBOs, List<Integer> ids, List<Integer> sknList) {
List<ProductSizesBO> productSizess = productSizesLogicService.getProductSizeBOList(ids);
... ... @@ -31,9 +31,12 @@ public class ProductSizesBuilder implements ViewBuilder {
productIndexBO.setIsSoonSoldOut("Y");
productIndexBO.setIsSoldOut("Y");
productIndexBO.setSoldOut(1);
productIndexBO.setSizeIds("");
productIndexBO.setSizeNames("");
productIndexBO.setBreakSizePercent(100);
productIndexBO.setHeatValue(new BigDecimal(0));
productIndexBO.setSkuIds("");
// fill property from ProductSizesBO
ProductSizesBO productSizesBO = productSizesMap.get(productIndexBO.getProductId());
if (productSizesBO != null) {
... ... @@ -45,6 +48,7 @@ public class ProductSizesBuilder implements ViewBuilder {
productIndexBO.setSizeNames(productSizesBO.getSizeNames());
productIndexBO.setBreakSizePercent(productSizesBO.getBreakSizePercent());
productIndexBO.setHeatValue(productSizesBO.getHeatValue());
productIndexBO.setSkuIds(productSizesBO.getSkuIds());
}
}
}
... ...