Authored by wangnan9279

ufo 发售日历 fix

... ... @@ -171,7 +171,7 @@ public class SearchRequestParams {
// 是否只过滤UFO
public static final String PARAM_SEARCH_IS_UFO = "is_ufo";
// ufo 发售日历
public static final String UFO_PARAM_STRAT_TIME = "startTime";
public static final String UFO_PARAM_START_TIME = "startTime";
public static final String UFO_PARAM_END_TIME = "endTime";
... ...
... ... @@ -86,7 +86,7 @@ public class UfoSaleCalendarService {
boolFilter.must(QueryBuilders.termQuery(UfoProductIndexEsField.delStatus, 0));
boolFilter.must(QueryBuilders.termQuery(UfoProductIndexEsField.shelveStatus, 1));
//发售时间过滤
int startTime = MapUtils.getIntValue(paramMap, SearchRequestParams.UFO_PARAM_STRAT_TIME, 0);
int startTime = MapUtils.getIntValue(paramMap, SearchRequestParams.UFO_PARAM_START_TIME, 0);
int endTime = MapUtils.getIntValue(paramMap, SearchRequestParams.UFO_PARAM_END_TIME, 0);
boolFilter.must(QueryBuilders.rangeQuery(UfoProductIndexEsField.saleTime).gte(startTime));
boolFilter.must(QueryBuilders.rangeQuery(UfoProductIndexEsField.saleTime).lte(endTime));
... ...