Compare commits
2 Commits
842b7117a2
...
66dc231850
Author | SHA1 | Date |
---|---|---|
|
66dc231850 | |
|
34ff47bc1c |
|
@ -208,7 +208,11 @@ public class AuditDocumentService(IRepository<AuditDocument> _auditDocumentRepos
|
|||
{
|
||||
|
||||
var defalutSortArray = new string[] { nameof(AuditDocumentData.AuditDocumentTypeEnum), nameof(AuditDocumentData.Name) };
|
||||
|
||||
if (inDto.SortField.IsNotNullOrEmpty())
|
||||
{
|
||||
defalutSortArray = new string[] { nameof(AuditDocumentData.AuditDocumentTypeEnum), inDto.SortField + (inDto.Asc ? " asc" : " desc") };
|
||||
inDto.SortField = string.Empty;
|
||||
}
|
||||
// 新取出来排序 然后再找子项
|
||||
var data= (await _auditDocumentRepository
|
||||
.Where(x=>x.AuditDocumentTypeEnum!=AuditDocumentType.HistoricalVersion)
|
||||
|
|
Loading…
Reference in New Issue