From bb880a0cdf269ac0762d49250b3b6b652ea654d3 Mon Sep 17 00:00:00 2001 From: wxd <123@qq.com> Date: Wed, 19 Jun 2024 03:30:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E5=8D=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../QuestionAnswers/QuestionAnswerManager.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Shentun.WebPeis.Domain/QuestionAnswers/QuestionAnswerManager.cs b/src/Shentun.WebPeis.Domain/QuestionAnswers/QuestionAnswerManager.cs index f76d0f7..5fb79a5 100644 --- a/src/Shentun.WebPeis.Domain/QuestionAnswers/QuestionAnswerManager.cs +++ b/src/Shentun.WebPeis.Domain/QuestionAnswers/QuestionAnswerManager.cs @@ -101,11 +101,11 @@ namespace Shentun.WebPeis.QuestionAnswers public async Task CheckAndDeleteAsync(Guid QuestionAnswerId) { - var questionRegisterAnswerEnt = await _questionRegisterAnswerRepository.FirstOrDefaultAsync(m => m.QuestionAnswerId == QuestionAnswerId); - if (questionRegisterAnswerEnt != null) - { - throw new UserFriendlyException($"问卷答案已被人员登记使用,不能删除"); - } + //var questionRegisterAnswerEnt = await _questionRegisterAnswerRepository.FirstOrDefaultAsync(m => m.QuestionAnswerId == QuestionAnswerId); + //if (questionRegisterAnswerEnt != null) + //{ + // throw new UserFriendlyException($"问卷答案已被人员登记使用,不能删除"); + //} await _questionAnswerRepository.DeleteAsync(d => d.QuestionAnswerId == QuestionAnswerId);