Authored by wangnan9279

fix bug

@@ -78,7 +78,7 @@ public class PageAggregationHelper { @@ -78,7 +78,7 @@ public class PageAggregationHelper {
78 IAggregation customizeAggregation = aggregationFactory.getCustomizeTagAggregation(paramMap); 78 IAggregation customizeAggregation = aggregationFactory.getCustomizeTagAggregation(paramMap);
79 List<Map<String, Object>> customTagList = (List<Map<String, Object>>) this.getAggregationResponse(customizeAggregation, paramMap); 79 List<Map<String, Object>> customTagList = (List<Map<String, Object>>) this.getAggregationResponse(customizeAggregation, paramMap);
80 JSONObject result = new JSONObject(); 80 JSONObject result = new JSONObject();
81 - result.put("customize_tag", CollectionUtils.isEmpty(customTagList) ? new ArrayList<>() : customTagList.get(0)); 81 + result.put("customize_tag", CollectionUtils.isEmpty(customTagList) ? new ArrayList<>() : SearchCollectionUtils.safeSubList(customTagList,0,1));
82 result.put("customize_tag_new", CollectionUtils.isEmpty(customTagList) ? new ArrayList<>() : customTagList); 82 result.put("customize_tag_new", CollectionUtils.isEmpty(customTagList) ? new ArrayList<>() : customTagList);
83 return result; 83 return result;
84 } catch (Exception e) { 84 } catch (Exception e) {