debug 異常訊息同步

This commit is contained in:
cesar liu 2022-09-07 12:53:49 +08:00
parent 038f882591
commit e1777eca17
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ namespace SolarPower
#region
//services.AddHostedService<OperationScheduleBackgroundService>();
//if (envName == "Production")
if (envName != "Production")
if (envName == "Production")
{
////添加Quartz服務
services.AddSingleton<IJobFactory, SingletonJobFactory>();

View File

@ -146,7 +146,7 @@ namespace solarApp.Service
#region update
sql = $@" update err_main a join alarmorion_orionalarmfacetvalue b on a.id = b.alarm
set errMsg = unicode_decode(`value`)
set a.errMsg = unicode_decode(`value`)
where facetName = 6 and alarm in ({sb.ToString()});";
rowCT = conn.Execute(sql, commandTimeout: 600);
duration = DateTime.Now - dt_start;