From bb774ce6227b7b9c061bb9af28025cb918a42d8e Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Mon, 19 Sep 2022 17:57:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IRaCIS.Core.Application/Service/Common/DictionaryService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs index 06d048f6c..01f6469e8 100644 --- a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs +++ b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs @@ -104,7 +104,7 @@ namespace IRaCIS.Application.Services { var verifyExp1 = new EntityVerifyExp() { - VerifyExp = t => t.Code == addOrEditBasic.Code, + VerifyExp = t => t.Code == addOrEditBasic.Code&&t.ParentId== addOrEditBasic.ParentId, VerifyMsg = $"已有{addOrEditBasic.Code}名称的字典", IsVerify= addOrEditBasic.ParentId ==null };