From 2c9fad60fb04c11e99ed79b909336df066f8e17c Mon Sep 17 00:00:00 2001 From: he <109787524@qq.com> Date: Mon, 3 Mar 2025 16:03:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/Document/TrialNormalRecordService.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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) {