优化代码
This commit is contained in:
+1
-2
@@ -186,9 +186,8 @@ public class AggregationServiceImpl implements IAggregationService {
|
||||
.setSize(0)
|
||||
.get();
|
||||
Aggregations aggregations = response.getAggregations();
|
||||
Map<String, Object> result = null;
|
||||
Map<String, Object> result = new HashMap<>(9);
|
||||
if (aggregations != null) {
|
||||
result = new HashMap<>(9);
|
||||
setCurrDate(result, aggregations);
|
||||
setCurrWeek(result, aggregations);
|
||||
setCurrMonth(result, aggregations);
|
||||
|
||||
Reference in New Issue
Block a user