Showing
1 changed file
with
10 additions
and
10 deletions
1 | package com.yoho.search.service.service.base; | 1 | package com.yoho.search.service.service.base; |
2 | 2 | ||
3 | -import java.util.ArrayList; | ||
4 | -import java.util.HashMap; | ||
5 | -import java.util.List; | ||
6 | -import java.util.Map; | ||
7 | - | 3 | +import com.yoho.search.base.utils.ISearchConstants; |
4 | +import com.yoho.search.core.es.model.SearchParam; | ||
5 | +import com.yoho.search.core.es.model.SearchResult; | ||
6 | +import com.yoho.search.service.service.SearchCommonService; | ||
7 | +import com.yoho.search.service.service.SearchDynamicConfigService; | ||
8 | import org.apache.commons.collections.MapUtils; | 8 | import org.apache.commons.collections.MapUtils; |
9 | import org.elasticsearch.index.query.BoolQueryBuilder; | 9 | import org.elasticsearch.index.query.BoolQueryBuilder; |
10 | import org.elasticsearch.index.query.QueryBuilders; | 10 | import org.elasticsearch.index.query.QueryBuilders; |
@@ -13,11 +13,10 @@ import org.slf4j.LoggerFactory; | @@ -13,11 +13,10 @@ import org.slf4j.LoggerFactory; | ||
13 | import org.springframework.beans.factory.annotation.Autowired; | 13 | import org.springframework.beans.factory.annotation.Autowired; |
14 | import org.springframework.stereotype.Service; | 14 | import org.springframework.stereotype.Service; |
15 | 15 | ||
16 | -import com.yoho.search.base.utils.ISearchConstants; | ||
17 | -import com.yoho.search.core.es.model.SearchParam; | ||
18 | -import com.yoho.search.core.es.model.SearchResult; | ||
19 | -import com.yoho.search.service.service.SearchCommonService; | ||
20 | -import com.yoho.search.service.service.SearchDynamicConfigService; | 16 | +import java.util.ArrayList; |
17 | +import java.util.HashMap; | ||
18 | +import java.util.List; | ||
19 | +import java.util.Map; | ||
21 | 20 | ||
22 | @Service | 21 | @Service |
23 | class ProductPricePlanIndexBaseService { | 22 | class ProductPricePlanIndexBaseService { |
@@ -42,6 +41,7 @@ class ProductPricePlanIndexBaseService { | @@ -42,6 +41,7 @@ class ProductPricePlanIndexBaseService { | ||
42 | productPricePlan.put("create_time", MapUtils.getIntValue(source, "createTime")); | 41 | productPricePlan.put("create_time", MapUtils.getIntValue(source, "createTime")); |
43 | productPricePlan.put("effect_time", MapUtils.getIntValue(source, "effectTime")); | 42 | productPricePlan.put("effect_time", MapUtils.getIntValue(source, "effectTime")); |
44 | productPricePlan.put("end_time", MapUtils.getIntValue(source, "endTime")); | 43 | productPricePlan.put("end_time", MapUtils.getIntValue(source, "endTime")); |
44 | + productPricePlan.put("vip_discount", MapUtils.getIntValue(source, "vipDiscount")); | ||
45 | return productPricePlan; | 45 | return productPricePlan; |
46 | } | 46 | } |
47 | 47 |
-
Please register or login to post a comment