From 725ebaba12bb76d9706920dd243ca81ef3cedff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BA=AF=E7=B2=B9=E7=9A=84=E7=83=AD=E7=88=B1?= <10087005+autolab@user.noreply.gitee.com> Date: Tue, 15 Mar 2022 03:24:48 +0000 Subject: [PATCH] update ZR.Service/System/SysDictService.cs. SysDictDataRepository --- ZR.Service/System/SysDictService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ZR.Service/System/SysDictService.cs b/ZR.Service/System/SysDictService.cs index ba218972..f6155dfc 100644 --- a/ZR.Service/System/SysDictService.cs +++ b/ZR.Service/System/SysDictService.cs @@ -1,4 +1,4 @@ -using Infrastructure; +using Infrastructure; using Infrastructure.Attribute; using System.Collections.Generic; using System.Text; @@ -63,7 +63,7 @@ namespace ZR.Service.System foreach (var dictId in dictIds) { SysDictType dictType = DictRepository.GetFirst(x => x.DictId == dictId); - if (DictRepository.Count(f => f.DictType == dictType.DictType) > 0) + if (SysDictDataRepository.Count(f => f.DictType == dictType.DictType) > 0) { throw new CustomException($"{dictType.DictName}已分配,不能删除"); } -- Gitee