Shuxia Ning
2024-07-17 fd681339c81201ed6fb3303647ecab89e3e6c0c1
IStation.Service/09-hydraulic/01-/DayValueHelper.cs
ÎļþÃû´Ó IStation.Service/08-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;
        }
        }
    }
}