debug 異常訊息同步
This commit is contained in:
parent
038f882591
commit
e1777eca17
@ -102,7 +102,7 @@ namespace SolarPower
|
|||||||
#region 加入背景執行
|
#region 加入背景執行
|
||||||
//services.AddHostedService<OperationScheduleBackgroundService>();
|
//services.AddHostedService<OperationScheduleBackgroundService>();
|
||||||
//if (envName == "Production")
|
//if (envName == "Production")
|
||||||
if (envName != "Production")
|
if (envName == "Production")
|
||||||
{
|
{
|
||||||
////添加Quartz服務
|
////添加Quartz服務
|
||||||
services.AddSingleton<IJobFactory, SingletonJobFactory>();
|
services.AddSingleton<IJobFactory, SingletonJobFactory>();
|
||||||
|
|||||||
@ -146,7 +146,7 @@ namespace solarApp.Service
|
|||||||
|
|
||||||
#region update 異常訊息
|
#region update 異常訊息
|
||||||
sql = $@" update err_main a join alarmorion_orionalarmfacetvalue b on a.id = b.alarm
|
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()});";
|
where facetName = 6 and alarm in ({sb.ToString()});";
|
||||||
rowCT = conn.Execute(sql, commandTimeout: 600);
|
rowCT = conn.Execute(sql, commandTimeout: 600);
|
||||||
duration = DateTime.Now - dt_start;
|
duration = DateTime.Now - dt_start;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user