From 0017b9c98ec4f9ca293831fb97dd1c4f6df8a7b8 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Fri, 24 Mar 2023 09:18:09 +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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs index a5528593b..0a9095e23 100644 --- a/IRaCIS.Core.Application/Service/Common/DictionaryService.cs +++ b/IRaCIS.Core.Application/Service/Common/DictionaryService.cs @@ -173,7 +173,8 @@ namespace IRaCIS.Application.Services { if (await _readingCriterionDictionaryRepository.AnyAsync(x => x.DictionaryId == id)) { - return ResponseOutput.NotOk("当前字典在标准中被引用,不允许删除!"); + await _readingCriterionDictionaryRepository.BatchDeleteNoTrackingAsync(t => t.DictionaryId == id); + //return ResponseOutput.NotOk("当前字典在标准中被引用,不允许删除!"); } if (await _dicRepository.AnyAsync(t => t.ParentId == id))