From e1777eca178263086dd80b9f8ccefde2373814a2 Mon Sep 17 00:00:00 2001 From: cesar liu Date: Wed, 7 Sep 2022 12:53:49 +0800 Subject: [PATCH] =?UTF-8?q?debug=20=E7=95=B0=E5=B8=B8=E8=A8=8A=E6=81=AF?= =?UTF-8?q?=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SolarPower/Startup.cs | 2 +- solarApp/Service/procSyncError.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;