From 84bdeffebeeb665cf18cf91d34f136101815ff2e Mon Sep 17 00:00:00 2001 From: "{872297557@qq.com}" <872297557@qq.com> Date: Thu, 2 Feb 2023 11:04:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E8=87=B4=E6=80=A7?= =?UTF-8?q?=E6=A0=B8=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Handlers/ConsistencyVerificationHandler.cs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/IRaCIS.Core.Application/_MediatR/Handlers/ConsistencyVerificationHandler.cs b/IRaCIS.Core.Application/_MediatR/Handlers/ConsistencyVerificationHandler.cs index ae7813c98..958acf929 100644 --- a/IRaCIS.Core.Application/_MediatR/Handlers/ConsistencyVerificationHandler.cs +++ b/IRaCIS.Core.Application/_MediatR/Handlers/ConsistencyVerificationHandler.cs @@ -102,7 +102,7 @@ namespace IRaCIS.Core.Application.MediatR.Handlers StringBuilder dialogMsg = new StringBuilder(); - dialogMsg.Append("您好,根据本系统自动识别,该受试者当前访视已提交的影像检查情况如下:"); + dialogMsg.Append("您好,根据本系统自动识别,该受试者当前访视在IRC系统中已提交的影像检查情况如下:"); var num = 0; foreach (var item in sv.StudyList) { @@ -112,6 +112,8 @@ namespace IRaCIS.Core.Application.MediatR.Handlers var dbSV = (await _subjectVisitRepository.FirstOrDefaultAsync(t => t.Id == sv.SubjectVisitId)).IfNullThrowException(); + + // 该访视 在ETC Excel中没有任何数据 if (etcVisitStudyList.Count == 0) { dialogMsg.AppendLine($"
"); @@ -145,7 +147,7 @@ namespace IRaCIS.Core.Application.MediatR.Handlers // excel 存在 var excelExceptDB = etcVisitStudyList.Except(dbCheckList); - //两者没有差别 + //ETC 和系统的完全一致 两者没有差别 if (dbExceptExcel.Count() == 0 && excelExceptDB.Count()==0) { dialogMsg.AppendLine($"
"); @@ -165,22 +167,23 @@ namespace IRaCIS.Core.Application.MediatR.Handlers dbSV.RequestBackState = dbSV.RequestBackState== RequestBackStateEnum.CRC_RequestBack? RequestBackStateEnum.PM_NotAgree: RequestBackStateEnum.NotRequest; dbSV.CheckChallengeDialogList.Add(new CheckChallengeDialog() { SubjectVisitId = sv.SubjectVisitId, TalkContent = dialogMsg.ToString(), UserTypeEnum = (UserTypeEnum)_userInfo.UserTypeEnumInt, CreateTime = DateTime.Now }); } + // ETC 和系统的有区别 else { dialogMsg.AppendLine($"
"); - dialogMsg.AppendLine($"
存在问题如下:"); + dialogMsg.AppendLine($"
当前访视在IRChe:"); num = 0; foreach (var item in dbExceptExcel) { num++; - dialogMsg.AppendLine($"
{num}.EDC 缺少{item.StudyDate}的{item.Modality}影像检查 "); + dialogMsg.AppendLine($"
{num}.{item.StudyDate}的{item.Modality}影像检查(EDC 缺少) "); } foreach (var item in excelExceptDB) { num++; - dialogMsg.AppendLine($"
{num}.IRC 缺少{item.StudyDate}的{item.Modality}影像检查 "); + dialogMsg.AppendLine($"
{num}.{item.StudyDate}的{item.Modality}影像检查(IRC 缺少) "); } dialogMsg.AppendLine($"
");