diff --git a/IRaCIS.Core.Application/Service/Document/TrialNormalRecordService.cs b/IRaCIS.Core.Application/Service/Document/TrialNormalRecordService.cs index cbfad6492..959a2e61a 100644 --- a/IRaCIS.Core.Application/Service/Document/TrialNormalRecordService.cs +++ b/IRaCIS.Core.Application/Service/Document/TrialNormalRecordService.cs @@ -70,6 +70,20 @@ public class TrialNormalRecordService(IRepository _trialNorma } + /// + /// 授权文档 + /// + /// + /// + public async Task AuthorizedTTrialNormalRecord(AuthorizedTrialFinalRecordInDto inDto) + { + await _trialNormalRecordRepository.UpdatePartialFromQueryAsync(t => inDto.Ids.Contains(t.Id), t => new TrialNormalRecord() { IsAuthorizedView = inDto.IsAuthorizedView }); + await _trialNormalRecordRepository.SaveChangesAsync(); + return ResponseOutput.Ok(); + } + + + [HttpDelete("{trialNormalRecordId:guid}")] public async Task DeleteTrialNormalRecord(Guid trialNormalRecordId) {