Merge branch 'Test_IRC_Net8' of http://192.168.3.68:2000/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
0655318d2d
|
@ -7,6 +7,7 @@ using Panda.DynamicWebApi.Attributes;
|
||||||
using IRaCIS.Core.Application.Contracts;
|
using IRaCIS.Core.Application.Contracts;
|
||||||
using IRaCIS.Core.Infrastructure;
|
using IRaCIS.Core.Infrastructure;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
using IRaCIS.Core.Domain.Models;
|
||||||
|
|
||||||
namespace IRaCIS.Application.Services
|
namespace IRaCIS.Application.Services
|
||||||
{
|
{
|
||||||
|
@ -1093,7 +1094,7 @@ namespace IRaCIS.Application.Services
|
||||||
|
|
||||||
|
|
||||||
await _readingTableQuestionTrialRepository.BatchDeleteNoTrackingAsync(x => x.TrialCriterionId == trialCriterion.Id);
|
await _readingTableQuestionTrialRepository.BatchDeleteNoTrackingAsync(x => x.TrialCriterionId == trialCriterion.Id);
|
||||||
await _readingTableQuestionTrialRepository.AddRangeAsync(needAddTableDatas);
|
await _readingTableQuestionTrialRepository.AddRangeAsync(_mapper.Map<List<ReadingTableQuestionTrial>>(needAddTableDatas));
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -232,6 +232,9 @@ namespace IRaCIS.Core.Application.Service
|
||||||
CreateMap<ReadingTableQuestionTrial, ReadingTrialTableQuestionData>()
|
CreateMap<ReadingTableQuestionTrial, ReadingTrialTableQuestionData>()
|
||||||
.ForMember(d => d.OriginalId, u => u.MapFrom(s => s.Id));
|
.ForMember(d => d.OriginalId, u => u.MapFrom(s => s.Id));
|
||||||
|
|
||||||
|
CreateMap<ReadingTrialTableQuestionData, ReadingTableQuestionTrial>();
|
||||||
|
|
||||||
|
|
||||||
CreateMap<ReadingQuestionCriterionSystem, ReadingQuestionCriterionTrial>()
|
CreateMap<ReadingQuestionCriterionSystem, ReadingQuestionCriterionTrial>()
|
||||||
.ForMember(dest => dest.ReadingQuestionTrialList, opt => opt.Ignore())
|
.ForMember(dest => dest.ReadingQuestionTrialList, opt => opt.Ignore())
|
||||||
.ForMember(d => d.ReadingQuestionCriterionSystemId, u => u.MapFrom(s => s.Id)); ;
|
.ForMember(d => d.ReadingQuestionCriterionSystemId, u => u.MapFrom(s => s.Id)); ;
|
||||||
|
|
|
@ -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