@@ -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
|
||||
|
||||
Reference in New Issue
Block a user