duheng
2024-06-19 64c0604d9a7d2460f6bf1b6cc7df02d769db3a15
WaterPredict/IStation.ChEr.WebApi.Predict/ÈÎÎñ/PredictHelper.cs
@@ -1,9 +1,4 @@
using IStation.Application;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.ChEr.WebApi
{
@@ -11,14 +6,18 @@
    {
        public static bool IsOpenState()
        {
            var result = ConnectHelper.GetByPumpOpenState(DateTime.Now, DateTime.Now.AddHours(-1));
            var result = ConnectHelper.GetByPumpOpenState(DateTime.Now, DateTime.Now.AddDays(1));
            foreach (var item in result)
            {
                if (item.DateTime.Hour == DateTime.Now.Hour)
            {
                if (item.Total != 0)
                {
                    LogHelper.Info("开机时间与累计流量不对应");
                    return true;
                }
                    return false;
                }
            }
            return false;
        }