个人任务列表创建时间倒序

Insight
陈伟 2024-11-21 14:21:58 +08:00
parent 8d4a7de8f8
commit d273395a58
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ public class PersonTaskApp : SqlSugarBaseApp<InsTask, SugarDbContext>
.RightJoin<InsTaskgroup>((a, b) => a.Id == b.TaskId)
.Where((a, b) => userIds.Contains(b.ReciveUserId))
.WhereIF(!string.IsNullOrEmpty(req.key),(a,b)=>a.TaskName.Contains(req.key))
.OrderBy((a,b)=> b.CreateTime,OrderByType.Desc)
.Select((a, b) => new InsTaskExtend
{
RowNumber = SqlSugar.SqlFunc.RowNumber(b.Id),