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;
|
}
|
}
|
}
|