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