|
@@ -525,9 +525,12 @@ namespace Hotline.Application.Knowledge
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword), p => p.SourceOrganize.Name.Contains(dto.Keyword))
|
|
|
.Select(p => new KnowedgeStatisticsDto
|
|
|
{
|
|
|
+ Index= SqlFunc.RowNumber($"{p.LastModificationTime} desc "),
|
|
|
LastModificationTime = p.LastModificationTime,
|
|
|
OrgName = p.SourceOrganize.Name
|
|
|
})
|
|
|
+ .MergeTable()
|
|
|
+ .Where(p=>p.Index==1)
|
|
|
.OrderByDescending(p => p.LastModificationTime);
|
|
|
}
|
|
|
}
|