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

IRC_NewDev
he 2024-10-22 18:01:55 +08:00
parent b0ece8bcfe
commit c4501321ed
1 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,7 @@ namespace IRaCIS.Core.Application.Service
/// 医生文档关联关系维护
/// </summary>
[ApiExplorerSettings(GroupName = "Reviewer")]
public class AttachmentService(IRepository<Attachment> _attachmentrepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IAttachmentService
public class AttachmentService(IRepository<Attachment> _attachmentrepository, IRepository<Doctor> _doctorrepository, IMapper _mapper, IUserInfo _userInfo, IStringLocalizer _localizer) : BaseService, IAttachmentService
{
@ -35,6 +35,11 @@ namespace IRaCIS.Core.Application.Service
//}
var success = await _attachmentrepository.BatchDeleteNoTrackingAsync(a => a.Id == param.Id);
await _doctorrepository.BatchUpdateNoTrackingAsync(x => x.GCPId == param.Id, x => new Doctor()
{
GCPId= default(Guid),
});
return ResponseOutput.Result(success);
}