using IStation.Application;
|
|
namespace IStation.ChEr.WebApi
|
{
|
internal class PredictHelper
|
{
|
public static bool IsOpenState()
|
{
|
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;
|
}
|
}
|
}
|