zuoxiang 4 роки тому
батько
коміт
526f7be7b1

+ 2 - 2
gx_api/GxPress/Repository/GxPress.Repository.Implement/Teacher/TeacherRepository.cs

@@ -49,7 +49,7 @@ namespace GxPress.Repository.Implement.Teacher
         public async Task<IEnumerable<Entity.tede2.Teacher.Teacher>> GetSearchAllAsync(TeacherRequest request)
         {
             var query = Q.NewQuery();
-            query.Where(Q.WhereLike(nameof(Entity.tede2.Teacher.Teacher.Name),$"%{request.KeyWord}%"));
+            query.WhereLike(nameof(Entity.tede2.Teacher.Teacher.Name), $"%{request.KeyWord}%");
             var result = await _repository.GetAllAsync(query);
             return result;
         }
@@ -60,7 +60,7 @@ namespace GxPress.Repository.Implement.Teacher
 
         public async Task<int> InsertAsync(Entity.tede2.Teacher.Teacher note)
         {
-             
+
             return await _repository.InsertAsync(note);
         }