Authored by gemingdan

shopweight 增量

... ... @@ -120,11 +120,17 @@ public class ProductSearchMqListener extends AbstractMqListener implements Chann
if (productSearch.getProjectId() == 1 && productSearch.getModelId() == 1) {
indexData.put("productId", productId);
indexData.put("brandWeight", productSearch.getIntValue());
indexData.put("sortWeight", 0);
indexData.put("shopWeight", 0);
} else if (productSearch.getProjectId() == 4 && productSearch.getModelId() == 1) {
indexData.put("productId", productId);
indexData.put("sortWeight", productSearch.getIntValue());
indexData.put("brandWeight", 0);
indexData.put("shopWeight", 0);
} else if (productSearch.getProjectId() == 5 && productSearch.getModelId() == 1) {
indexData.put("productId", productId);
indexData.put("brandWeight", 0);
indexData.put("sortWeight", 0);
indexData.put("shopWeight", productSearch.getIntValue());
}
... ...