From fd681339c81201ed6fb3303647ecab89e3e6c0c1 Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期三, 17 七月 2024 09:50:11 +0800
Subject: [PATCH] 调度逻辑修改,新增笛卡尔积过滤循环

---
 IStation.Service/09-hydraulic/01-/DayValueHelper.cs |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/IStation.Service/08-hydraulic/01-/DayValueHelper.cs b/IStation.Service/09-hydraulic/01-/DayValueHelper.cs
similarity index 78%
rename from IStation.Service/08-hydraulic/01-/DayValueHelper.cs
rename to IStation.Service/09-hydraulic/01-/DayValueHelper.cs
index 0c936cb..45738a4 100644
--- a/IStation.Service/08-hydraulic/01-/DayValueHelper.cs
+++ b/IStation.Service/09-hydraulic/01-/DayValueHelper.cs
@@ -2,13 +2,13 @@
 {
     public class DayValueHelper
     {
-        
+
         public static List<DayValue> GetDayValues(int station)
         {
             string folderPath;
-            if (station==1)
+            if (station == 1)
             {
-                  folderPath = $"{AppDomain.CurrentDomain.BaseDirectory}Eapnet楠岃瘉鏁版嵁\\闄堣涓�杈�";
+                folderPath = $"{AppDomain.CurrentDomain.BaseDirectory}Eapnet楠岃瘉鏁版嵁\\闄堣涓�杈�";
             }
             else
             {
@@ -16,8 +16,8 @@
             }
 
             if (!Directory.Exists(folderPath))
-                return default; 
-            var fileList=Directory.GetFiles(folderPath);
+                return default;
+            var fileList = Directory.GetFiles(folderPath);
             if (fileList == null || !fileList.Any())
                 return default;
 
@@ -27,7 +27,7 @@
                 var fileName = Path.GetFileNameWithoutExtension(file);
                 if (!DateTime.TryParse(fileName, out DateTime day))
                     continue;
-                var json=File.ReadAllText(file);
+                var json = File.ReadAllText(file);
                 var timeValues = JsonHelper.Json2Object<List<TimeValue>>(json);
                 if (timeValues == null || !timeValues.Any())
                     continue;
@@ -36,10 +36,10 @@
                 dayValue.Month = day.Month;
                 dayValue.Day = day.Day;
                 dayValue.TimeValueList = timeValues;
-                list.Add(dayValue); 
+                list.Add(dayValue);
             }
 
             return list;
-        } 
+        }
     }
 }

--
Gitblit v1.9.3