From 70b99d56a4a2422eb5d5433e6e31736a4d7b5c8b Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Wed, 20 Nov 2024 16:13:44 +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/Doctor/DoctorService.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs b/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs index cbb27d441..05078c075 100644 --- a/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs +++ b/IRaCIS.Core.Application/Service/Doctor/DoctorService.cs @@ -224,7 +224,7 @@ namespace IRaCIS.Core.Application.Service [HttpPost] public async Task AddOrUpdateGneralSituation(SummarizeInfoDto inDto) { - if (inDto.TrialId != null) + if (inDto.TrialId != null&&inDto.Id==null) { var systemCount = await _doctorSummarizeRepository.Where(x => x.DoctorId == inDto.DoctorId && x.TrialId == null).CountAsync(); if (systemCount == 0) @@ -251,6 +251,7 @@ namespace IRaCIS.Core.Application.Service /// /// /// + [HttpPost] public async Task GetSummarizeInfo(GetSummarizeInfoInDto inDto) { var result = await _doctorSummarizeRepository.Where(t => t.Id == inDto.DoctorId && t.TrialId == inDto.TrialId)