From 261a038cf312965ee25ec60aae565617b15cb7e1 Mon Sep 17 00:00:00 2001 From: he <10978375@qq.com> Date: Mon, 16 Jan 2023 17:17:21 +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/Reading/ReadingPeriod/ReadModuleService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingPeriod/ReadModuleService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingPeriod/ReadModuleService.cs index 6ee40a256..15d9520d8 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingPeriod/ReadModuleService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingPeriod/ReadModuleService.cs @@ -424,9 +424,9 @@ namespace IRaCIS.Application.Services throw new BusinessValidationFailedException("当前访视存在肿瘤学阅片,请先删除肿瘤学阅片"); } - if (await _visitTaskRepository.AnyAsync(x => readModuleId==x.SouceReadModuleId && x.ReadingTaskState == ReadingTaskState.HaveSigned && x.TaskState == TaskState.Effect)) + if (await _visitTaskRepository.AnyAsync(x => readModuleId==x.SouceReadModuleId)) { - throw new BusinessValidationFailedException("当前阅片已生成任务并且阅片完成,操作失败。"); + throw new BusinessValidationFailedException("当前阅片已生成任务,操作失败。"); }