|
@@ -15,7 +15,7 @@ public interface CourseSubRelationRepository extends BasicJpaRepository<CourseSu
|
|
|
|
|
|
|
|
|
@Query(value = "select r from CourseSubRelation r where r.courseId = :courseId and r.status = 0 order by r.sort limit 1", nativeQuery = true)
|
|
|
- CourseSubRelation findFirstByCourseIdOrderBySort(String courseId);
|
|
|
+ CourseSubRelation findFirstByCourseIdOrderBySort(@Param("courseId") String courseId);
|
|
|
|
|
|
@Query(value = "select r from CourseSubRelation r where r.courseId = :courseId and r.status = :status order by r.sort")
|
|
|
List<CourseSubRelation> findByCourseId(@Param("courseId") String courseId, @Param("status") BaseStatusEnum status);
|