From d393d1a84aa1e732628473751a18540effe1da3f Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Thu, 2 Jun 2022 17:48:39 +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/IRaCIS.Core.Application.xml | 4 ++-- .../Service/Reading/ReadingPeriodSetService.cs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml index 9976b439c..9b02ef678 100644 --- a/IRaCIS.Core.Application/IRaCIS.Core.Application.xml +++ b/IRaCIS.Core.Application/IRaCIS.Core.Application.xml @@ -867,9 +867,9 @@ 创建人 - + - 备注 + 阅片配置的类型 diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingPeriodSetService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingPeriodSetService.cs index 32c8831e0..7bced6795 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingPeriodSetService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingPeriodSetService.cs @@ -85,7 +85,7 @@ namespace IRaCIS.Application.Services var visitquery = _subjectVisitRepository.Where(x => x.TrialId == readset.TrialId && x.LatestScanDate != null && x.InPlan); if (readset.ReadingScope == ReadingScopeEnum.Site) { - var siteids = readset.ReadingPeriodSites.Select(x => x.Id); + var siteids = readset.ReadingPeriodSites.Select(x => x.SiteId); visitquery = visitquery.Where(x => siteids.Contains(x.SiteId)); } @@ -191,9 +191,9 @@ namespace IRaCIS.Application.Services [HttpPut] public async Task SetReadingPeriodSetEffect(SetReadingPeriodSetEffect indto) { - var readquery =await _readingPeriodSetRepository.UpdatePartialNowNoQueryAsync(indto.Id, x => new ReadingPeriodSet() { + var readquery =await _readingPeriodSetRepository.UpdatePartialFromQueryAsync(indto.Id, x => new ReadingPeriodSet() { IsTakeEffect = indto.IsTakeEffect - }); + },true); return ResponseOutput.Result(true); }