|
|
@@ -148,16 +148,19 @@ public interface FsUserCourseVideoMapper extends BaseMapper<FsUserCourseVideo> {
|
|
|
Long selectFsUserCourseVideoByCourseSort(@Param("courseId") Long courseId, @Param("courseSort") Long courseSort);
|
|
|
|
|
|
|
|
|
- @Select("select video_id dict_value, title dict_label from fs_user_course_video where course_id=#{id} and is_del = 0 order by course_sort")
|
|
|
- List<OptionsVO> selectFsUserCourseVodeAllList(Long id);
|
|
|
+ /**
|
|
|
+ * 按课程查询小节下拉(MyBatis 不支持同名方法重载,勿再增加同名重载)
|
|
|
+ */
|
|
|
+ @Select("select video_id dict_value, title dict_label, is_pause, open_class from fs_user_course_video where course_id=#{id} and is_del = 0 order by course_sort")
|
|
|
+ List<OptionsVO> selectFsUserCourseVodeAllList(@Param("id") Long id);
|
|
|
|
|
|
@Select("<script>" +
|
|
|
- "select video_id dict_value, title dict_label ,is_Pause,open_class from fs_user_course_video " +
|
|
|
+ "select video_id dict_value, title dict_label, is_pause, open_class from fs_user_course_video " +
|
|
|
"where course_id=#{id} and is_del = 0 " +
|
|
|
"<if test='title != null'> and title like concat('%', #{title}, '%') </if>"+
|
|
|
" order by course_sort "+
|
|
|
"</script>")
|
|
|
- List<OptionsVO> selectFsUserCourseVodeAllList(@Param("id")Long id, @Param("title")String title);
|
|
|
+ List<OptionsVO> selectFsUserCourseVodeAllListByTitle(@Param("id") Long id, @Param("title") String title);
|
|
|
|
|
|
@Select({"<script> " +
|
|
|
"select v.*,p.red_packet_money company_red_packet_money from fs_user_course_video v " +
|