文档加过滤条件
parent
9bd129b98a
commit
9e5f7bc64d
|
@ -109,6 +109,8 @@ namespace IRaCIS.Core.Application.Contracts
|
|||
|
||||
public string Name { get; set; } = string.Empty;
|
||||
|
||||
public bool? IsSign { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class UserConfirmCommand
|
||||
|
|
|
@ -188,7 +188,9 @@ namespace IRaCIS.Core.Application.Services
|
|||
|
||||
var unionQuery = systemDocumentQueryable.Union(trialDocQueryable)
|
||||
.WhereIf(!string.IsNullOrEmpty(querySystemDocument.Name), t => t.Name.Contains(querySystemDocument.Name))
|
||||
.WhereIf(querySystemDocument.FileTypeId != null, t => t.FileTypeId == querySystemDocument.FileTypeId);
|
||||
.WhereIf(querySystemDocument.FileTypeId != null, t => t.FileTypeId == querySystemDocument.FileTypeId)
|
||||
.WhereIf(querySystemDocument.IsSign == true, t => t.ConfirmUserId != null)
|
||||
.WhereIf(querySystemDocument.IsSign == false, t => t.ConfirmUserId == null);
|
||||
|
||||
return await unionQuery.ToPagedListAsync(querySystemDocument.PageIndex, querySystemDocument.PageSize, querySystemDocument.SortField, querySystemDocument.Asc);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue