From 9a3a8165cdd4ff1ec307bfa19b83407fd13b64cf Mon Sep 17 00:00:00 2001 From: hanrenchun Date: Sun, 28 Jan 2024 21:10:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=82=B9=E4=BA=BA=E5=A4=A9=E6=95=B0?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ruoyi/business/controller/PerceptionDeviceController.java | 4 ++-- .../com/ruoyi/database/domain/vo/MetaImpUserModelInfoVO.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gather-app/src/main/java/com/ruoyi/business/controller/PerceptionDeviceController.java b/gather-app/src/main/java/com/ruoyi/business/controller/PerceptionDeviceController.java index 5149ad6..9d2ea55 100644 --- a/gather-app/src/main/java/com/ruoyi/business/controller/PerceptionDeviceController.java +++ b/gather-app/src/main/java/com/ruoyi/business/controller/PerceptionDeviceController.java @@ -125,7 +125,7 @@ public class PerceptionDeviceController extends BaseController { // 创建一个 TreeMap 用于存储每天的数据量 Map dailyCountsMap = new TreeMap<>(); // 循环迭代前6天 - for (int i = 1; i <= 7; i++) { + for (int i =0; i < 7; i++) { LocalDate date = currentDate.minusDays(i); // 构造查询条件 QueryWrapper userRecordQueryWrapper = new QueryWrapper<>(); @@ -162,7 +162,7 @@ public class PerceptionDeviceController extends BaseController { // 创建一个 TreeMap 用于存储每天的数据量 Map dailyCountsMap = new TreeMap<>(); // 循环迭代前7天 - for (int i = 1; i <= 7; i++) { + for (int i = 0; i < 7; i++) { LocalDate date = currentDate.minusDays(i); // 构造查询条件 QueryWrapper vehicleQueryWrapper = new QueryWrapper<>(); diff --git a/gather-app/src/main/java/com/ruoyi/database/domain/vo/MetaImpUserModelInfoVO.java b/gather-app/src/main/java/com/ruoyi/database/domain/vo/MetaImpUserModelInfoVO.java index 7e35fc2..b13daf1 100644 --- a/gather-app/src/main/java/com/ruoyi/database/domain/vo/MetaImpUserModelInfoVO.java +++ b/gather-app/src/main/java/com/ruoyi/database/domain/vo/MetaImpUserModelInfoVO.java @@ -27,5 +27,6 @@ public class MetaImpUserModelInfoVO extends BaseEntity { private String warningTime; + private String value; } \ No newline at end of file