diff --git a/SolarPower/Startup.cs b/SolarPower/Startup.cs index a7dbf60..f6eb6c9 100644 --- a/SolarPower/Startup.cs +++ b/SolarPower/Startup.cs @@ -102,7 +102,7 @@ namespace SolarPower #region 加入背景執行 //services.AddHostedService(); //if (envName == "Production") - if (envName != "Production") + if (envName == "Production") { ////添加Quartz服務 services.AddSingleton(); diff --git a/solarApp/Service/procSyncError.cs b/solarApp/Service/procSyncError.cs index be5abc7..fd0bd65 100644 --- a/solarApp/Service/procSyncError.cs +++ b/solarApp/Service/procSyncError.cs @@ -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;