个人任务添加任务名模糊搜索
parent
70655a0fb9
commit
44cdd9ad32
|
|
@ -43,6 +43,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(!string.IsNullOrEmpty(req.key),(a,b)=>a.TaskName.Contains(req.key))
|
||||
.Select((a, b) => new InsTaskExtend
|
||||
{
|
||||
RowNumber = SqlSugar.SqlFunc.RowNumber(b.Id),
|
||||
|
|
|
|||
Loading…
Reference in New Issue