From b9458ecb38c9aeb7ad997c49082244f941d944ec Mon Sep 17 00:00:00 2001
From: he <109787524@qq.com>
Date: Fri, 14 Mar 2025 16:12:42 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Service/Doctor/AttachmentService.cs | 21 +++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs b/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs
index 9c776b7f8..0a7e6fa59 100644
--- a/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs
+++ b/IRaCIS.Core.Application/Service/Doctor/AttachmentService.cs
@@ -201,6 +201,27 @@ namespace IRaCIS.Core.Application.Service
}
+ ///
+ /// 更新医生资质
+ ///
+ ///
+ ///
+ [HttpPost]
+ public async Task UpdateTrialAttachments(AttachmentDTO attachment)
+ {
+
+ if (attachment.DoctorId != null)
+ {
+ await _attachmentrepository.DeleteFromQueryAsync(a => a.DoctorId == attachment.DoctorId && a.Type == attachment.Type);
+ }
+
+ await _attachmentrepository.UpdateFromDTOAsync(attachment);
+
+ await _attachmentrepository.SaveChangesAsync();
+ return ResponseOutput.Ok();
+ }
+
+
[NonDynamicMethod]
public async Task GetDetailById(Guid attachmentId)