测试拷贝到根目录
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
9c6b835800
commit
92063da2bf
|
@ -385,6 +385,11 @@ public class AuditDocumentService(IRepository<AuditDocument> _auditDocumentRepos
|
|||
[HttpPost]
|
||||
public async Task<IResponseOutput> MovieFileOrFolder(MovieFileOrFolderInDto inDto)
|
||||
{
|
||||
if (inDto.ParentId == null)
|
||||
{
|
||||
return ResponseOutput.Ok();
|
||||
}
|
||||
|
||||
//闭包表中找到 设置Id为祖先的所有 后代 包括自己
|
||||
var matchIdQuery = _auditDocumentClosureRepository.Where(t => inDto.Ids.Contains(t.AncestorId)).Select(t => t.DescendantId);
|
||||
|
||||
|
|
|
@ -188,7 +188,7 @@ public class MovieFileOrFolderInDto
|
|||
{
|
||||
public List<Guid> Ids { get; set; }
|
||||
|
||||
public Guid ParentId { get; set; }
|
||||
public Guid? ParentId { get; set; }
|
||||
}
|
||||
|
||||
public class HistoricalVersionDto : AuditDocumentUpdateDto
|
||||
|
|
|
@ -109,7 +109,9 @@ namespace IRaCIS.Core.Application.Service
|
|||
int depth = 1;
|
||||
var currentParentId = doc.ParentId;
|
||||
|
||||
while (currentParentId.HasValue)
|
||||
|
||||
//脏数据 parentId==Guid.Empty
|
||||
while (currentParentId.HasValue && currentParentId != Guid.Empty)
|
||||
{
|
||||
closures.Add(new AuditDocumentClosure
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue