Compare commits

..

No commits in common. "e60f9eb689da76dcf6ab0464e310c613a99aaf1d" and "0f3050b28d96130ec9802200f4ed9d6ea280a823" have entirely different histories.

2 changed files with 17 additions and 2 deletions

View File

@ -649,7 +649,6 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
}
await _readingTableAnswerRowInfoRepository.DeleteFromQueryAsync(x => x.QuestionId == questionInfo.Id && x.VisitTaskId == taskinfo.Id);
await _readingTableQuestionAnswerRepository.DeleteFromQueryAsync(x => x.QuestionId == questionInfo.Id && x.VisitTaskId == taskinfo.Id);
await _readingTableQuestionAnswerRepository.SaveChangesAsync();
await _readingTableAnswerRowInfoRepository.AddRangeAsync(tableAnsweRowInfos);
await _readingTableQuestionAnswerRepository.AddRangeAsync(tableAnswers);
await _readingTableQuestionAnswerRepository.SaveChangesAsync();
@ -825,7 +824,6 @@ namespace IRaCIS.Core.Application.Service.ReadingCalculate
}
await _readingTableAnswerRowInfoRepository.DeleteFromQueryAsync(x => x.QuestionId == questionInfo.Id && x.VisitTaskId == taskinfo.Id);
await _readingTableQuestionAnswerRepository.DeleteFromQueryAsync(x => x.QuestionId == questionInfo.Id && x.VisitTaskId == taskinfo.Id);
await _readingTableQuestionAnswerRepository.SaveChangesAsync();
await _readingTableAnswerRowInfoRepository.AddRangeAsync(tableAnsweRowInfos);
await _readingTableQuestionAnswerRepository.AddRangeAsync(tableAnswers);
await _readingTableQuestionAnswerRepository.SaveChangesAsync();

View File

@ -254,6 +254,23 @@ namespace IRaCIS.Core.Infra.EFCore.Common
}
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(ReadingImportFile)))
{
var type = GetEntityAuditOpt(item);
var extraIdentification = string.Empty;
var basicData = item.Entity as SystemBasicData;
extraIdentification = (basicData.ParentId == null ? "/parent" : string.Empty);
await InsertInspection<SystemBasicData>(item.Entity as SystemBasicData, type, x => new InspectionConvertDTO()
{
IsDistinctionInterface = false,
ExtraIndentification = extraIdentification
});
}
// 阅片导入
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(ReadingImportFile)))
{