diff --git a/IRaCIS.Core.Application/Service/Document/SystemDocumentService.cs b/IRaCIS.Core.Application/Service/Document/SystemDocumentService.cs index 074f6b850..d0c55ff3f 100644 --- a/IRaCIS.Core.Application/Service/Document/SystemDocumentService.cs +++ b/IRaCIS.Core.Application/Service/Document/SystemDocumentService.cs @@ -183,6 +183,22 @@ namespace IRaCIS.Core.Application.Services return ResponseOutput.Result(result); } + /// + /// 下线系统文档 + /// + /// + [HttpPost] + public async Task OutLineSystemDocument(PublishSystemDocumentInDto inDto) + { + await _systemDocumentRepository.UpdatePartialFromQueryAsync(x => inDto.Ids.Contains(x.Id), x => new SystemDocument() + { + IsDeleted = true, + }); + var result = await _systemDocumentRepository.SaveChangesAsync(); + await _mediatorScoped.Publish(new SystemDocumentPublishEvent() { Ids = inDto.Ids }); + return ResponseOutput.Result(result); + } + [HttpDelete("{systemDocumentId:guid}")] public async Task AbandonSystemDocumentAsync(Guid systemDocumentId) { diff --git a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs index 0eec1a736..a8075a2ce 100644 --- a/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs +++ b/IRaCIS.Core.Application/Service/Reading/ReadingImageTask/ReadingImageTaskService.cs @@ -2411,16 +2411,16 @@ namespace IRaCIS.Core.Application.Service case CriterionType.mRECISTHCC: - var orginInfo=await _organTrialInfoRepository.Where(x =>x.TrialCriterionId== taskinfo.TrialReadingCriterionId&& x.OrganInfoId == inDto.OrganInfoId).FirstOrDefaultAsync(); + //var orginInfo=await _organTrialInfoRepository.Where(x =>x.TrialCriterionId== taskinfo.TrialReadingCriterionId&& x.OrganInfoId == inDto.OrganInfoId).FirstOrDefaultAsync(); - if (orginInfo != null && orginInfo.TULOCEN == "Liver") - { - var otherorganCount=await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.QuestionId == inDto.QuestionId && x.Id!=inDto.Id&&x.OrganInfo.TULOCEN == "Liver").CountAsync(); - if (otherorganCount >=2) - { - throw new BusinessValidationFailedException(_localizer["ReadingImageTask_HCCOrganRepeat"]); - } - } + //if (orginInfo != null && orginInfo.TULOCEN == "Liver") + //{ + // var otherorganCount=await _readingTableAnswerRowInfoRepository.Where(x => x.VisitTaskId == inDto.VisitTaskId && x.QuestionId == inDto.QuestionId && x.Id!=inDto.Id&&x.OrganInfo.TULOCEN == "Liver").CountAsync(); + // if (otherorganCount >=2) + // { + // throw new BusinessValidationFailedException(_localizer["ReadingImageTask_HCCOrganRepeat"]); + // } + //} // 如果当前添加 是 非靶病灶 并且 典型肝内病灶为 是 时 如果 靶病灶的典型肝内病灶 为是的 数量<2 给提示