个人任务添加任务分包状态过滤

Insight
陈伟 2024-12-17 14:31:05 +08:00
parent bf2e0f30fe
commit 67b6d42ee1
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ public class PersonTaskApp : SqlSugarBaseApp<InsTask, SugarDbContext>
var result = await Repository.AsQueryable()
.RightJoin<InsTaskgroup>((a, b) => a.Id == b.TaskId)
.Where((a, b) => userIds.Contains(b.ReciveUserId))
.WhereIF(req.IsComplate,(a,b)=>b.IsComplate == req.IsComplate)
.WhereIF(!string.IsNullOrEmpty(req.key), (a, b) => a.TaskName.Contains(req.key))
.OrderBy((a, b) => b.CreateTime, OrderByType.Desc)
.Select((a, b) => new InsTaskExtend

View File

@ -5,4 +5,5 @@ namespace OpenAuth.App.ServiceApp.Task.Request;
public class PersonTaskQuery : PageReq
{
public string userId { get; set; }
public bool IsComplate { get; set; }
}