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