From b16f2e91fe9d9992bf34e9b35a2d93e95c6ee5d7 Mon Sep 17 00:00:00 2001
From: he <10978375@qq.com>
Date: Thu, 14 Jul 2022 10:03:57 +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
---
.../Service/Reading/ReadingMedicalReviewService.cs | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingMedicalReviewService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingMedicalReviewService.cs
index cdf6cd1a0..f9cf7a013 100644
--- a/IRaCIS.Core.Application/Service/Reading/ReadingMedicalReviewService.cs
+++ b/IRaCIS.Core.Application/Service/Reading/ReadingMedicalReviewService.cs
@@ -285,6 +285,10 @@ namespace IRaCIS.Core.Application.Service
///
public async Task SaveMedicalReviewInfo(SaveMedicalReviewInfoInDto inDto)
{
+ if ((await _taskMedicalReviewRepository.Where(x => x.Id == inDto.TaskMedicalReviewId).Select(x => x.SaveQuestionTime).FirstOrDefaultAsync()) == null)
+ {
+ return ResponseOutput.NotOk("请先保存医审核问题");
+ }
await _taskMedicalReviewRepository.UpdatePartialFromQueryAsync(inDto.TaskMedicalReviewId, x => new TaskMedicalReview()
{
IsHaveQuestion = inDto.IsHaveQuestion,
@@ -550,11 +554,5 @@ namespace IRaCIS.Core.Application.Service
return result;
}
-
-
-
-
-
-
}
}