‘linchangsheng’ 1 month ago
parent
commit
d2f4927d2c

+ 2 - 2
mall-server-api/src/main/java/com/gree/mall/manager/logic/workorder/OrderBaseCountLogic.java

@@ -377,7 +377,7 @@ public class OrderBaseCountLogic {
                                         .lte(DateUtil.format(DateUtil.endOfDay(new Date()),"yyyy-MM-dd HH:mm:ss")))))
                 .withPageable(PageRequest.of(1, 1))
                 .addAggregation(AggregationBuilders.dateHistogram("AZ")
-                        .field("create_time")
+                        .field("over_time")
                         .calendarInterval(DateHistogramInterval.DAY)
                         .format("yyyy-MM-dd"))
                 .build();
@@ -411,7 +411,7 @@ public class OrderBaseCountLogic {
                                         .lte(DateUtil.format(DateUtil.endOfDay(new Date()),"yyyy-MM-dd HH:mm:ss")))))
                 .withPageable(PageRequest.of(1, 1))
                 .addAggregation(AggregationBuilders.dateHistogram("WX")
-                        .field("create_time")
+                        .field("over_time")
                         .calendarInterval(DateHistogramInterval.DAY)
                         .format("yyyy-MM-dd"))
                 .build();