个人任务添加任务名模糊搜索

Insight
陈伟 2024-11-21 09:56:00 +08:00
parent 70655a0fb9
commit 44cdd9ad32
1 changed files with 1 additions and 0 deletions

View File

@ -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),