|
@@ -17,7 +17,7 @@ public interface CourseRepo extends JpaRepository<Course, Long>,QueryByExampleEx
|
|
|
|
|
|
List<Course> findByIdNotIn(List<Long> ids);
|
|
List<Course> findByIdNotIn(List<Long> ids);
|
|
|
|
|
|
- @Query("select t from Course t where t.orgId = ?1 and (t.code like '%?2%' or t.name like '%?2%') and t.enable = true")
|
|
|
|
|
|
+ @Query("select t from Course t where t.orgId = ?1 and (t.code like ?2 or t.name like ?2) and t.enable = true")
|
|
List<Course> findByCodeName(Long orgId,String codeName);
|
|
List<Course> findByCodeName(Long orgId,String codeName);
|
|
|
|
|
|
}
|
|
}
|