|
@@ -14,7 +14,7 @@ public interface CourseSubRelationRepository extends BasicJpaRepository<CourseSu
|
|
|
List<CourseSubRelation> findByCourseId(String courseId);
|
|
|
|
|
|
|
|
|
- @Query(value = "select r from p_course_sub_relation r where r.course_id = :courseId and r.status = 0 order by r.sort limit 1", nativeQuery = true)
|
|
|
+ @Query(value = "select r.* from p_course_sub_relation r where r.course_id = :courseId and r.status = 0 order by r.sort limit 1", nativeQuery = true)
|
|
|
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")
|