@@ -84,9 +84,11 @@ namespace IRaCIS.Core.Application.Service
|
||||
public async Task RebuildAuditDocumentClosureAsync([FromServices] IRepository<AuditDocumentClosure> _auditDocumentClosureRepository, [FromServices] IRepository<AuditDocument> _auditDocumentRepository)
|
||||
{
|
||||
|
||||
|
||||
await _auditDocumentClosureRepository.BatchDeleteNoTrackingAsync(t => t.Id != Guid.Empty);
|
||||
|
||||
var documents = await _auditDocumentRepository.Where().Select(t => new { t.Id, t.ParentId }).ToListAsync();
|
||||
//过滤版本文件,防止污染闭包表
|
||||
var documents = await _auditDocumentRepository.Where(t => t.MainFileId == null).Select(t => new { t.Id, t.ParentId }).ToListAsync();
|
||||
|
||||
var closures = new List<AuditDocumentClosure>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user