修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0cb74296c3
commit
ce11788878
|
@ -284,6 +284,31 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
.Select(t => new { t.AdditionalAssessmentType, t.IsSelected }).ToListAsync();
|
.Select(t => new { t.AdditionalAssessmentType, t.IsSelected }).ToListAsync();
|
||||||
|
|
||||||
|
|
||||||
|
var oncologyAssessIdsStr = string.Empty;
|
||||||
|
var allList = new List<ReadingTrialCriterionDictionary>();
|
||||||
|
|
||||||
|
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<ReadingQuestionCriterionTrial>(entity, type, x => new InspectionConvertDTO()
|
await InsertInspection<ReadingQuestionCriterionTrial>(entity, type, x => new InspectionConvertDTO()
|
||||||
{
|
{
|
||||||
IsDistinctionInterface = isDistinctionInterface,
|
IsDistinctionInterface = isDistinctionInterface,
|
||||||
|
@ -296,6 +321,8 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
||||||
|
|
||||||
}, new
|
}, new
|
||||||
{
|
{
|
||||||
|
OncologyAssessIdsStr= oncologyAssessIdsStr,
|
||||||
|
|
||||||
EvaluationResultTypes = dicValueList.Count > 0 ? string.Join(",", dicValueList) : string.Empty,
|
EvaluationResultTypes = dicValueList.Count > 0 ? string.Join(",", dicValueList) : string.Empty,
|
||||||
AdditionalAssessmentTypeList = addtionalAssesementList
|
AdditionalAssessmentTypeList = addtionalAssesementList
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue