Authored by hugufei

Merge branch 'master' into test

... ... @@ -206,11 +206,16 @@ public class ProductIndexServiceImpl implements IProductIndexService,Application
public Object getResult() throws Exception {
SearchParam searchParam = getSearchParamFromMap(paramMap);
JSONObject jsonObject = aggregationService.getIsNewAggregationResult(searchParam, paramMap, false);
return jsonObject.get("isnewAgg");
Object isNewResponse = jsonObject.get("isnewAgg");
if (isNewResponse != null && ((Boolean) isNewResponse).booleanValue()) {
return "Y";
}else{
return "N";
}
}
});
}
@Override
public SearchApiResult aggLimited(Map<String, String> paramMap) {
return this.getSearchApiResult("aggLimited", paramMap, new Searcher() {
... ... @@ -218,7 +223,12 @@ public class ProductIndexServiceImpl implements IProductIndexService,Application
public Object getResult() throws Exception {
SearchParam searchParam = getSearchParamFromMap(paramMap);
JSONObject jsonObject = aggregationService.getIsLimitAggregationResult(searchParam, paramMap, false);
return jsonObject.get("islimitedAgg");
Object islimitedAgg = jsonObject.get("islimitedAgg");
if (islimitedAgg != null && ((Boolean) islimitedAgg).booleanValue()) {
return "Y";
}else{
return "N";
}
}
});
}
... ... @@ -230,7 +240,12 @@ public class ProductIndexServiceImpl implements IProductIndexService,Application
public Object getResult() throws Exception {
SearchParam searchParam = getSearchParamFromMap(paramMap);
JSONObject jsonObject = aggregationService.getIsSecialofferAggregationResult(searchParam, paramMap, false);
return jsonObject.get("specialofferAgg");
Object specialofferAgg = jsonObject.get("specialofferAgg");
if (specialofferAgg != null && ((Boolean) specialofferAgg).booleanValue()) {
return "Y";
}else{
return "N";
}
}
});
}
... ...