修改
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
he 2025-03-14 16:12:42 +08:00
parent b205757f8f
commit b9458ecb38
1 changed files with 21 additions and 0 deletions

View File

@ -201,6 +201,27 @@ namespace IRaCIS.Core.Application.Service
}
/// <summary>
/// 更新医生资质
/// </summary>
/// <param name="attachment"></param>
/// <returns></returns>
[HttpPost]
public async Task<IResponseOutput> 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<AttachmentDTO> GetDetailById(Guid attachmentId)