diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index 8c0bc8bf0..ec1e86542 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -165,11 +165,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common case "configTrialBasicInfo/ConfigTrialBasicInfoConfirm": extraIdentification = $"/{oldentity.IsTrialBasicLogicConfirmed.ToString()}"; break; - case "configTrialBasicInfo/ConfigTrialProcessInfoConfirm": - extraIdentification = $"/{oldentity.IsTrialProcessConfirmed.ToString()}"; - break; + case "configTrialBasicInfo/ConfigTrialProcessInfoConfirm": + extraIdentification = $"/{oldentity.IsTrialProcessConfirmed.ToString()}"; + break; - case "configTrialBasicInfo/ConfigTrialUrgentInfoConfirm": + case "configTrialBasicInfo/ConfigTrialUrgentInfoConfirm": extraIdentification = $"/{oldentity.IsTrialUrgentConfirmed.ToString()}"; break; @@ -245,11 +245,11 @@ namespace IRaCIS.Core.Infra.EFCore.Common //项目流程确认 || _userInfo.RequestUrl == "configTrialBasicInfo/ConfigTrialProcessInfoConfirm" - //确认医学审核问题 - || _userInfo.RequestUrl == "ReadingMedicineQuestion/ConfirmReadingMedicineQuestion" + //确认医学审核问题 + || _userInfo.RequestUrl == "ReadingMedicineQuestion/ConfirmReadingMedicineQuestion" - //阅片单元 保存阅片规则 - || _userInfo.RequestUrl == "TrialConfig/setCriterionReadingInfo" + //阅片单元 保存阅片规则 + || _userInfo.RequestUrl == "TrialConfig/setCriterionReadingInfo" || _userInfo.RequestUrl == "configTrialBasicInfo/TrialReadingInfoSign") { @@ -284,7 +284,32 @@ namespace IRaCIS.Core.Infra.EFCore.Common .Select(t => new { t.AdditionalAssessmentType, t.IsSelected }).ToListAsync(); - await InsertInspection(entity, type, x => new InspectionConvertDTO() + var oncologyAssessIdsStr = string.Empty; + var allList = new List(); + + if (entitys.Any(x => x.Entity.GetType() == typeof(ReadingTrialCriterionDictionary))) + { + allList = entitys.Where(x => x.Entity.GetType() == typeof(ReadingTrialCriterionDictionary)) + .Select(t => t.Entity as ReadingTrialCriterionDictionary).ToList().Where(x=> + x.CriterionId== entity.Id && + x.ParentCode == ReadingCommon.CriterionDictionary.OncologyAssess).ToList(); + } + else + { + allList=await _dbContext.ReadingTrialCriterionDictionary.Where(x => + x.CriterionId == entity.Id && + x.ParentCode == ReadingCommon.CriterionDictionary.OncologyAssess).ToListAsync(); + } + + + //查询出字典的Value ValueCN Des 保存 + var diclistOncologyAssess = allList.Select(t => t.DictionaryId).ToList(); + + var selectList = await _dbContext.Dictionary.Where(x => diclistOncologyAssess.Contains(x.Id)).Select(t => t.ValueCN).ToListAsync(); + + oncologyAssessIdsStr = string.Join(",", selectList); + + await InsertInspection(entity, type, x => new InspectionConvertDTO() { IsDistinctionInterface = isDistinctionInterface, @@ -296,7 +321,9 @@ namespace IRaCIS.Core.Infra.EFCore.Common }, new { - EvaluationResultTypes = dicValueList.Count > 0 ? string.Join(",", dicValueList) : string.Empty, + OncologyAssessIdsStr= oncologyAssessIdsStr, + + EvaluationResultTypes = dicValueList.Count > 0 ? string.Join(",", dicValueList) : string.Empty, AdditionalAssessmentTypeList = addtionalAssesementList }); }