zuoxiang 4 년 전
부모
커밋
526f7be7b1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      gx_api/GxPress/Repository/GxPress.Repository.Implement/Teacher/TeacherRepository.cs

+ 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);
         }