debug : 電站啟用檢查 - inv 儘檢查是否啟用,不管是否為異常

This commit is contained in:
cesar liu 2022-06-15 22:36:01 +08:00
parent 3a57ed7769
commit 254a17d6d3
4 changed files with 8 additions and 8 deletions

View File

@ -227,7 +227,7 @@ namespace SolarPower.Quartz.Jobs
var dateNowMonth = DateTimeNow.AddDays(-1).ToString("yyyy-MM");
Root2 observation = null;
// from here
#region ()
try
{
@ -785,7 +785,7 @@ namespace SolarPower.Quartz.Jobs
await powerStationRepository.UpdateMeterHistoryMonthList(updatemeterHistoryMonths);
}
#endregion
// end from here
#region
var gobackDay = this.Configuration.GetValue<int>("GoBackDay"); //回推天數
var Connection_string = Configuration.GetValue<string>("mySql");

View File

@ -6016,11 +6016,11 @@ namespace SolarPower.Repository.Implement
select '{code}' , 'inverter', 'inverter_isnull',
case when count(*) > 0 then 0 else 1 end isError,
now(),
case when count(*) > 0 then Null else '' end error_reason
case when count(*) > 0 then Null else '' end error_reason
from {DBname}.power_station a
join {DBname}.controller b on a.id = b.PowerStationId
join {DBname}.inverter c on b.id = c.ControllerId
where a.`Code` = '{code}' and c.Deleted = 0 and c.Enabled = 1 and c.Status = 1 ;";
where a.`Code` = '{code}' and c.Deleted = 0 and c.Enabled = 1 and c.Status > 0 ;";
await conn.ExecuteAsync(sql);
// # 回傳結果

View File

@ -34,7 +34,7 @@
//},
"BackgroundServiceCron": {
"CalcPowerStationJob": "0 5 * * * ?",
"CalcAvgPowerStationJob": "0 0 2 * * ?",
"CalcAvgPowerStationJob": "0 12 0 * * ?",
"OperationScheduleJob": "0 0 8 * * ?",
"CalcInverter15minJob": "0 2/15 * * * ?",
"SendEmailJob": "0 0/5 * * * ?",

View File

@ -36,7 +36,7 @@
},
"BackgroundServiceCron": {
"CalcPowerStationJob": "0 5 * * * ?",
"CalcAvgPowerStationJob": "0 0 2 * * ?",
"CalcAvgPowerStationJob": "0 12 0 * * ?",
"OperationScheduleJob": "0 0 8 * * ?",
"CalcInverter15minJob": "0 2/15 * * * ?",
"SendEmailJob": "0 0/5 * * * ?",