異常判斷 - 斷線代號修改

This commit is contained in:
jiahao 2023-06-28 00:03:40 +08:00
parent 3016b91685
commit 1c2097b3cb
3 changed files with 5 additions and 5 deletions

View File

@ -162,8 +162,8 @@ namespace solarApp.Service
site_id, alarmID, datestamp, HealthStatus
from (
select site_id, datestamp, sourceState, id alarmID,
case when alarmClass = 34 then 3 # Network -
when alarmClass != 34 then 2 end HealthStatus # inv, sensor
case when alarmClass = 1 then 3 # Network -
when alarmClass != 1 then 2 end HealthStatus # inv, sensor
from err_main
where sourceState = 1 and left(site_id , 1) = '0'
and datestamp > '{ System.DateTime.Now.AddDays(-60).ToString("yyyy-MM-dd")}'

View File

@ -760,7 +760,7 @@ namespace solarApp
this.ClientSize = new System.Drawing.Size(1782, 953);
this.Controls.Add(this.tabControl1);
this.Name = "fmArchive";
this.Text = "fmArchive 05-29 拯救 Kevin";
this.Text = "fmArchive 06-28 拯救 Kevin";
this.Load += new System.EventHandler(this.fmArchive_Load);
this.tabControl1.ResumeLayout(false);
this.tabPage1.ResumeLayout(false);

View File

@ -190,8 +190,8 @@ namespace solarApp
//}
//水位管理
if (System.DateTime.Now.Hour == 20 && DateTime.Now.Minute == 00
//水位管理 每月 20 日 晚上8點
if (System.DateTime.Now.Day == 20 && System.DateTime.Now.Hour == 20 && DateTime.Now.Minute == 00
&& (DateTime.Now.Second >= 0 && DateTime.Now.Second <= 10)
&& autoTask == false)
{