修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
b205757f8f
commit
b9458ecb38
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue