duheng
2024-05-29 b4189107397fb4e2da2bd9343d0eb85d44918932
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using IStation.Application;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace IStation.ChEr.WebApi
{
    internal class PredictHelper
    {
        public static bool IsOpenState()
        {
            var result = ConnectHelper.GetByPumpOpenState(DateTime.Now, DateTime.Now.AddHours(-1));
            foreach (var item in result)
            {
                if (item.Total != 0)
                {
                    return true;
                }
            }
            return false;
        }
    }
}