diff --git a/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs b/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs index 059bd6e24..bc7c9e0f0 100644 --- a/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs +++ b/IRaCIS.Core.Application/Service/Allocation/VisitTaskService.cs @@ -1340,7 +1340,7 @@ namespace IRaCIS.Core.Application.Service.Allocation && t.OriginalReReadingTask.ReadingTaskState == ReadingTaskState.HaveSigned && t.RequestReReadingType == RequestReReadingType.DocotorApply && t.RequestReReadingResultEnum == RequestReReadingResult.Default)) { //---当前为有序阅片,该受试者已有访视已申请重阅还未处理,暂不能继续申请重阅 - return ResponseOutput.NotOk(_localizer["VisitTask_SequentialReading"]); + throw new BusinessValidationFailedException(_localizer["VisitTask_SequentialReading"]); } @@ -1358,7 +1358,7 @@ namespace IRaCIS.Core.Application.Service.Allocation .AnyAsync(t => t.VisitTaskNum == task.VisitTaskNum)) { //---当前为有序阅片,影像存在问题,项目组已申请回退,暂不能申请重阅 - return ResponseOutput.NotOk(_localizer["VisitTask_ImageProblem"]); + throw new BusinessValidationFailedException(_localizer["VisitTask_ImageProblem"]); } } @@ -2236,11 +2236,10 @@ namespace IRaCIS.Core.Application.Service.Allocation Expression> filterExpression = t => t.TrialId == trialId && t.SubjectId == task.SubjectId && (t.TaskState == TaskState.Effect || t.TaskState == TaskState.Freeze) && t.TaskAllocationState == TaskAllocationState.Allocated; - - //附加评估 IR 和PM 看到的影响列表不一样 + if (criterionConfig.CriterionType == CriterionType.RECIST1Point1 && criterionConfig.IsAdditionalAssessment) { - + //影像退回,必定影响两个标准的任务 filterExpression = filterExpression.And(t => t.TrialReadingCriterionId == task.TrialReadingCriterionId || t.TrialReadingCriterion.CriterionType == CriterionType.RECIST1Pointt1_MB); diff --git a/IRaCIS.Core.Application/Service/Reading/MedicalAudit/ReadingMedicalReviewService.cs b/IRaCIS.Core.Application/Service/Reading/MedicalAudit/ReadingMedicalReviewService.cs index 7819c196b..6c41c6688 100644 --- a/IRaCIS.Core.Application/Service/Reading/MedicalAudit/ReadingMedicalReviewService.cs +++ b/IRaCIS.Core.Application/Service/Reading/MedicalAudit/ReadingMedicalReviewService.cs @@ -585,10 +585,11 @@ namespace IRaCIS.Core.Application.Service TrialId = inDto.TrialId, TaskIdList = new List() { - visitTaskId - + visitTaskId } }); + + await _taskMedicalReviewRepository.UpdatePartialFromQueryAsync(x => !x.IsClosedDialog && x.Id == inDto.TaskMedicalReviewId, x => new TaskMedicalReview() { IsClosedDialog = true, @@ -598,9 +599,7 @@ namespace IRaCIS.Core.Application.Service IsApplyHeavyReading = true, FileName = inDto.FileName, ImagePath = JsonConvert.SerializeObject(inDto.FileList), - DisagreeReason = inDto.DisagreeReason, - - + DisagreeReason = inDto.DisagreeReason, }); }