发布项目文档的时候 记录稽查

Test_IRC_Net8
he 2025-06-25 14:00:17 +08:00
parent c0f7a921d6
commit 6b068e3919
1 changed files with 2 additions and 1 deletions

View File

@ -96,11 +96,12 @@ namespace IRaCIS.Core.Application.Services
[HttpPost] [HttpPost]
public async Task<IResponseOutput> PublishTrialDocument(PublishTrialDocumentInDto inDto) public async Task<IResponseOutput> PublishTrialDocument(PublishTrialDocumentInDto inDto)
{ {
await _trialDocumentRepository.BatchUpdateNoTrackingAsync(x => inDto.Ids.Contains(x.Id), x => new TrialDocument() await _trialDocumentRepository.UpdatePartialFromQueryAsync(x => inDto.Ids.Contains(x.Id), x => new TrialDocument()
{ {
IsPublish = true, IsPublish = true,
IsDeleted = false, IsDeleted = false,
}); });
await _trialDocumentRepository.SaveChangesAsync();
Console.WriteLine("开始 发布项目文档"); Console.WriteLine("开始 发布项目文档");
Task.Run(async () => Task.Run(async () =>