修改稽查记录管理 默认列表
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
99350c3a17
commit
e3b2046cb8
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue