|
|
package com.yoho.search.service.service.base;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
import com.yoho.search.base.utils.ISearchConstants;
|
|
|
import com.yoho.search.core.es.model.SearchParam;
|
|
|
import com.yoho.search.core.es.model.SearchResult;
|
|
|
import com.yoho.search.service.service.SearchCommonService;
|
|
|
import com.yoho.search.service.service.SearchDynamicConfigService;
|
|
|
import org.apache.commons.collections.MapUtils;
|
|
|
import org.elasticsearch.index.query.BoolQueryBuilder;
|
|
|
import org.elasticsearch.index.query.QueryBuilders;
|
...
|
...
|
@@ -13,11 +13,10 @@ import org.slf4j.LoggerFactory; |
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import com.yoho.search.base.utils.ISearchConstants;
|
|
|
import com.yoho.search.core.es.model.SearchParam;
|
|
|
import com.yoho.search.core.es.model.SearchResult;
|
|
|
import com.yoho.search.service.service.SearchCommonService;
|
|
|
import com.yoho.search.service.service.SearchDynamicConfigService;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@Service
|
|
|
class ProductPricePlanIndexBaseService {
|
...
|
...
|
@@ -42,6 +41,7 @@ class ProductPricePlanIndexBaseService { |
|
|
productPricePlan.put("create_time", MapUtils.getIntValue(source, "createTime"));
|
|
|
productPricePlan.put("effect_time", MapUtils.getIntValue(source, "effectTime"));
|
|
|
productPricePlan.put("end_time", MapUtils.getIntValue(source, "endTime"));
|
|
|
productPricePlan.put("vip_discount", MapUtils.getIntValue(source, "vipDiscount"));
|
|
|
return productPricePlan;
|
|
|
}
|
|
|
|
...
|
...
|
|