|
@@ -42,6 +42,8 @@ namespace GxPress.Repository.Implement.Teacher
|
|
|
{
|
|
|
var result = new PagedList<Entity.tede2.Teacher.Teacher>();
|
|
|
var query = Q.NewQuery();
|
|
|
+ if (!string.IsNullOrEmpty(request.KeyWord))
|
|
|
+ query.WhereLike(nameof(Entity.tede2.Teacher.Teacher.Name), $"%{request.KeyWord}%");
|
|
|
result.Items = await _repository.GetAllAsync(query.ForPage(request.Page, request.PerPage));
|
|
|
result.Total = await _repository.CountAsync(query);
|
|
|
return result;
|