个人任务添加任务分包状态过滤
parent
bf2e0f30fe
commit
67b6d42ee1
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -5,4 +5,5 @@ namespace OpenAuth.App.ServiceApp.Task.Request;
|
|||
public class PersonTaskQuery : PageReq
|
||||
{
|
||||
public string userId { get; set; }
|
||||
public bool IsComplate { get; set; }
|
||||
}
|
||||
Loading…
Reference in New Issue