From 6461c6492361547a77efc499756d0729e7fb707a Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 4 Aug 2025 11:30:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A8=BD=E6=9F=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ReadingCalculate/OCTCalculateService.cs | 2 ++ IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs | 17 ----------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/IRaCIS.Core.Application/Service/ReadingCalculate/OCTCalculateService.cs b/IRaCIS.Core.Application/Service/ReadingCalculate/OCTCalculateService.cs index 55c169b29..44bc97be2 100644 --- a/IRaCIS.Core.Application/Service/ReadingCalculate/OCTCalculateService.cs +++ b/IRaCIS.Core.Application/Service/ReadingCalculate/OCTCalculateService.cs @@ -649,6 +649,7 @@ 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(); @@ -824,6 +825,7 @@ 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(); diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs index af9a259f5..940118ea7 100644 --- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs +++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs @@ -254,23 +254,6 @@ 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(item.Entity as SystemBasicData, type, x => new InspectionConvertDTO() - { - IsDistinctionInterface = false, - ExtraIndentification = extraIdentification - }); - } - - // 阅片导入 foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(ReadingImportFile))) {