From c96934e503869647bbfc40adf1ad551180bc2f85 Mon Sep 17 00:00:00 2001
From: "{872297557@qq.com}" <872297557@qq.com>
Date: Wed, 28 Dec 2022 17:16:08 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=A8=BD=E6=9F=A5=E6=8E=A5?=
=?UTF-8?q?=E5=8F=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ReadingMedicalReviewService.cs | 5 ++-
.../Common/AuditingData.cs | 39 ++++++++++---------
2 files changed, 23 insertions(+), 21 deletions(-)
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 问题答案