From eb3ce91948854f2d32772e6d8d4988eb24d9fcec Mon Sep 17 00:00:00 2001 From: Argo-Tianyi Date: Wed, 12 Jan 2022 12:56:02 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BootStarpAdmin.DataAccess.FreeSql/Service/DictService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blazor/admin/BootStarpAdmin.DataAccess.FreeSql/Service/DictService.cs b/src/blazor/admin/BootStarpAdmin.DataAccess.FreeSql/Service/DictService.cs index cafecd5e..dfa7b993 100644 --- a/src/blazor/admin/BootStarpAdmin.DataAccess.FreeSql/Service/DictService.cs +++ b/src/blazor/admin/BootStarpAdmin.DataAccess.FreeSql/Service/DictService.cs @@ -121,7 +121,7 @@ class DictService : IDict private bool SaveDict(Dict dict) { - var ret = FreeSql.Update().Where(s => s.Category == dict.Category && s.Name == dict.Code).Set(s => s.Code, dict.Code).ExecuteAffrows() > 0; + var ret = FreeSql.Update().Where(s => s.Category == dict.Category && s.Name == dict.Name).Set(s => s.Code, dict.Code).ExecuteAffrows() > 0; if (ret) { // 更新缓存