修改稽查记录管理 默认列表
continuous-integration/drone/push Build is passing Details

Test_IRC_Net8
hang 2025-09-28 15:41:39 +08:00
parent 99350c3a17
commit e3b2046cb8
2 changed files with 4 additions and 2 deletions

View File

@ -289,8 +289,8 @@ public class AuditDocumentService(IRepository<AuditDocument> _auditDocumentRepos
var parentIdList = _auditDocumentClosureRepository.Where(t => matchDocIdQuery.Contains(t.DescendantId)).Select(t => t.AncestorId).Distinct().ToList();
if (inDto.IsAuthorization == true)
//刚开始未授权,就是空的,默认展示所有
if (inDto.IsCurrentAuditRecordAuthorization == true && parentIdList.Count > 0)
{
//只查看授权的
matchedList = matchedList.Where(t => parentIdList.Contains((Guid)t.Id)).ToList();

View File

@ -113,6 +113,8 @@ public class GetAuditDocumentDataInDto : PageInput
public bool? IsAuthorization { get; set; }
public bool? IsCurrentAuditRecordAuthorization { get; set; }
public string Name { get; set; } = string.Empty;
//当前稽查记录Id