diff --git a/IRaCIS.Core.Application/Service/Reading/MedicalAudit/ReadingMedicalReviewService.cs b/IRaCIS.Core.Application/Service/Reading/MedicalAudit/ReadingMedicalReviewService.cs
index ab0fd6cba..3e2307e3e 100644
--- a/IRaCIS.Core.Application/Service/Reading/MedicalAudit/ReadingMedicalReviewService.cs
+++ b/IRaCIS.Core.Application/Service/Reading/MedicalAudit/ReadingMedicalReviewService.cs
@@ -600,14 +600,14 @@ namespace IRaCIS.Core.Application.Service
}
});
- await _taskMedicalReviewRepository.BatchUpdateNoTrackingAsync(x => !x.IsClosedDialog && x.Id == inDto.TaskMedicalReviewId, x => new TaskMedicalReview()
+ await _taskMedicalReviewRepository.UpdatePartialFromQueryAsync(x => !x.IsClosedDialog && x.Id == inDto.TaskMedicalReviewId, x => new TaskMedicalReview()
{
IsClosedDialog = true,
MedicalDialogCloseEnum = MedicalDialogClose.IRApplyReReading,
});
}
- await _taskMedicalReviewRepository.BatchUpdateNoTrackingAsync(x => x.Id == inDto.TaskMedicalReviewId, x => new TaskMedicalReview()
+ await _taskMedicalReviewRepository.UpdatePartialFromQueryAsync(inDto.TaskMedicalReviewId, x => new TaskMedicalReview()
{
DoctorUserIdeaEnum = inDto.DoctorUserIdeaEnum,
});
@@ -705,6 +705,7 @@ namespace IRaCIS.Core.Application.Service
///
///
[HttpPost]
+ [UnitOfWork]
public async Task IRConfirmMedicalReview(IRConfirmMedicalReviewInDto inDto)
{
var medicalReviewInfo = await _taskMedicalReviewRepository.Where(x => x.Id == inDto.TaskMedicalReviewId).FirstNotNullAsync();
diff --git a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs
index 2662ee16f..05dbf7ac9 100644
--- a/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs
+++ b/IRaCIS.Core.Infra.EFCore/Common/AuditingData.cs
@@ -577,6 +577,26 @@ namespace IRaCIS.Core.Infra.EFCore.Common
}
+ //医学审核对话
+
+ foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(ReadingMedicalReviewDialog)))
+ {
+ var type = GetEntityAuditOpt(item);
+
+ var entity = item.Entity as ReadingMedicalReviewDialog;
+
+ await InsertInspection(entity, type, x => new InspectionConvertDTO()
+ {
+ IsDistinctionInterface = false,
+ VisitTaskId = entity.VisitTaskId,
+
+ ObjectRelationParentId = entity.TaskMedicalReviewId,
+
+ });
+ }
+
+
+
//医学审核
foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(TaskMedicalReview)))
{
@@ -608,25 +628,6 @@ namespace IRaCIS.Core.Infra.EFCore.Common
- //医学审核对话
-
- foreach (var item in entitys.Where(x => x.Entity.GetType() == typeof(ReadingMedicalReviewDialog)))
- {
- var type = GetEntityAuditOpt(item);
-
- var entity = item.Entity as ReadingMedicalReviewDialog;
-
- await InsertInspection(entity, type, x => new InspectionConvertDTO()
- {
- IsDistinctionInterface = false,
- VisitTaskId = entity.VisitTaskId,
-
- ObjectRelationParentId = entity.TaskMedicalReviewId,
-
- });
- }
-
-
// Qc 问题答案