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)