Uat_Study
he 2023-03-24 09:18:09 +08:00
parent d311290547
commit 0017b9c98e
1 changed files with 2 additions and 1 deletions

View File

@ -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))