From 480d1f6b24764115038edccc97fdc616b5e9a5ca Mon Sep 17 00:00:00 2001 From: lhiven <236881222@qq.com> Date: Sun, 31 Dec 2023 16:29:42 +0900 Subject: [PATCH] =?UTF-8?q?=E7=B3=BB=E7=BB=9F=E5=8F=82=E6=95=B0=E6=9C=89?= =?UTF-8?q?=E9=87=8D=E6=96=B0=E5=8A=A0=E8=BD=BD=E6=94=B9=E4=B8=BA=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.Controls/Common/SysConfigParam.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Rs.Controls/Common/SysConfigParam.cs b/Rs.Controls/Common/SysConfigParam.cs index f339621..e5f9aae 100644 --- a/Rs.Controls/Common/SysConfigParam.cs +++ b/Rs.Controls/Common/SysConfigParam.cs @@ -87,7 +87,15 @@ namespace Rs.Controls int count = db.ExecuteNonQuery(updateSql); if (count > 0) { - Init(); + //Init(); + string querySql = $"select * from SysParameter where FieldName='{key}' "; + DataTable dtParameters = db.GetDataTable(querySql); + if (dtParameters != null && dtParameters.Rows.Count > 0) + { + SysParameter parm = EntityHelper.ToEntity(dtParameters.Rows[0]); + sysParamDic.Remove(key); + sysParamDic.Add(key, parm); + } return count; } return 0;