From fc2acded7f957092eec4efebb9ff932d0611cdf8 Mon Sep 17 00:00:00 2001
From: he <10978375@qq.com>
Date: Wed, 25 May 2022 09:05:26 +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/WorkLoad/DoctorWorkloadService.cs | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/WorkLoad/DoctorWorkloadService.cs b/IRaCIS.Core.Application/Service/WorkLoad/DoctorWorkloadService.cs
index 03932caaf..7b362b8f5 100644
--- a/IRaCIS.Core.Application/Service/WorkLoad/DoctorWorkloadService.cs
+++ b/IRaCIS.Core.Application/Service/WorkLoad/DoctorWorkloadService.cs
@@ -54,7 +54,7 @@ namespace IRaCIS.Application.Services
ReviewerAckDTO attachmentViewModel)
{
- var intoGroupItem = (await _enrollRepository.FirstOrDefaultAsync(t => t.TrialId == trialId && t.DoctorId == attachmentViewModel.DoctorId)).IfNullThrowException();
+ var intoGroupItem = (await _enrollRepository.Where(t => t.TrialId == trialId && t.DoctorId == attachmentViewModel.DoctorId).FirstOrDefaultAsync()).IfNullThrowException();
if (attachmentViewModel.Id != Guid.Empty)
@@ -94,7 +94,7 @@ namespace IRaCIS.Application.Services
/// 0代表裁判和Tp 都可以 1、代表Tp 2 代表裁判
///
///
- [HttpPost("{trialId}/{doctorId}/{reviewerReadingType}")]
+ [HttpPost("{trialId}/{doctorId}/{type}")]
[TypeFilter(typeof(TrialResourceFilter))]
public async Task UpdateReviewerReadingType(Guid trialId, Guid doctorId, int type)
{