From b68d060f85a2ec43062d4c463b84ec752a45ba0d Mon Sep 17 00:00:00 2001
From: hang <872297557@qq.com>
Date: Tue, 5 Mar 2024 11:43:16 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E8=87=B4=E6=80=A7=E5=88=86=E6=9E=90?=
=?UTF-8?q?=E8=A7=84=E5=88=99=20=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0?=
=?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BF=A1=E6=81=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Service/Allocation/TaskConsistentRuleService.cs | 7 +++++--
.../Service/TrialSiteUser/PersonalWorkstation.cs | 2 +-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs b/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs
index 273bd9683..dfeb6e08b 100644
--- a/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs
+++ b/IRaCIS.Core.Application/Service/Allocation/TaskConsistentRuleService.cs
@@ -731,7 +731,7 @@ namespace IRaCIS.Core.Application.Service
///
///
[HttpPost]
- public async Task> GetSelfConsistentDoctorStatList(TaskConsistentRuleQuery inQuery)
+ public async Task>> GetSelfConsistentDoctorStatList(TaskConsistentRuleQuery inQuery)
{
@@ -812,7 +812,10 @@ namespace IRaCIS.Core.Application.Service
//var taskConsistentRuleQueryable = _taskConsistentRuleRepository.Where(t => t.TrialId == inQuery.TrialId)
// .ProjectTo(_mapper.ConfigurationProvider);
- return await taskConsistentRuleQueryable.ToListAsync();
+ var list= await taskConsistentRuleQueryable.ToListAsync();
+
+ var rule= await _taskConsistentRuleRepository.Where(t => t.TrialId == inQuery.TrialId && t.IsSelfAnalysis == inQuery.IsSelfAnalysis && t.TrialReadingCriterionId == inQuery.TrialReadingCriterionId).ProjectTo(_mapper.ConfigurationProvider).FirstOrDefaultAsync();
+ return ResponseOutput.Ok(list, rule);
}
[HttpPost]
diff --git a/IRaCIS.Core.Application/Service/TrialSiteUser/PersonalWorkstation.cs b/IRaCIS.Core.Application/Service/TrialSiteUser/PersonalWorkstation.cs
index cbe137ae4..e418f26e6 100644
--- a/IRaCIS.Core.Application/Service/TrialSiteUser/PersonalWorkstation.cs
+++ b/IRaCIS.Core.Application/Service/TrialSiteUser/PersonalWorkstation.cs
@@ -715,7 +715,7 @@ namespace IRaCIS.Core.Application
.Where(c => c.TrialSite.CRCUserList.Any(u => u.UserId == _userInfo.Id))
.Where(u => u.SubmitState == SubmitStateEnum.ToSubmit).Count(),
- }).Where(x => x.ToBeDealedCount > 0); ;
+ }).Where(x => x.ToBeDealedCount > 0);