Browse Source

fix:修改默认聚合维度

黄渊昊 2 months ago
parent
commit
f8ea4d4e55

+ 1 - 1
snowy-plugin/snowy-plugin-coldchain/src/main/java/vip/xiaonuo/coldchain/modular/app/service/AppDeviceService.java

@@ -310,7 +310,7 @@ public class AppDeviceService {
         AggregationWindow window = null;
         String aggregationWindow = appDeviceQueryParams.getAggregationWindow();
         if (StrUtil.isBlank(aggregationWindow)) {
-            window = AggregationWindow.determineAggregationWindow(appDeviceQueryParams.getStartTime(), appDeviceQueryParams.getEndTime());
+            window = AggregationWindow.fromString("1h");
         } else {
             // 如果用户选择了聚合维度,但不在枚举中,使用默认的聚合窗口
             window = AggregationWindow.fromString(aggregationWindow);