tangxu
2024-07-03 871ce0adc5e746833f2a08e3e5f872535eb90516
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,13 +6,17 @@
    {
        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.Total != 0)
                if (item.DateTime.Hour == DateTime.Now.Hour)
                {
                    LogHelper.Info("开机时间与累计流量不对应");
                    return true;
                    if (item.Total != 0)
                    {
                        LogHelper.Info("开机时间与累计流量不对应");
                        return true;
                    }
                    return false;
                }
            }
            return false;