From df500bf6ee29b3fead5b920ed366230b62a4c7ee Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期三, 22 十一月 2023 09:57:42 +0800
Subject: [PATCH] 1.新增了站点信息查询的接口 2.修改了扬尘已有接口的参数以及sql语句 3.修改了用户登陆接口

---
 src/main/java/com/flightfeather/monitor/utils/DateUtil.kt |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/flightfeather/monitor/utils/DateUtil.kt b/src/main/java/com/flightfeather/monitor/utils/DateUtil.kt
index 4aed1d4..48f7cb7 100644
--- a/src/main/java/com/flightfeather/monitor/utils/DateUtil.kt
+++ b/src/main/java/com/flightfeather/monitor/utils/DateUtil.kt
@@ -6,18 +6,20 @@
 
     fun findDurationDate(s: LocalDate, e: LocalDate): List<LocalDate> {
         val res = mutableListOf<LocalDate>()
-        while (s.isBefore(e) || s.isEqual(e)) {
-            res.add(s)
-            s.plusDays(1)
+        var sT = s
+        while (sT.isBefore(e) || sT.isEqual(e)) {
+            res.add(sT)
+            sT = sT.plusDays(1)
         }
         return res
     }
 
     fun findDurationMonth(s: LocalDate, e: LocalDate): List<LocalDate> {
         val res = mutableListOf<LocalDate>()
-        while (s.monthValue <= e.monthValue) {
-            res.add(s)
-            s.plusMonths(1)
+        var sT = s
+        while (sT.monthValue <= e.monthValue) {
+            res.add(sT)
+            sT = sT.plusMonths(1)
         }
         return res
     }

--
Gitblit v1.9.3