|
|
@@ -152,6 +152,9 @@ public interface FsUserCourseVideoMapper extends BaseMapper<FsUserCourseVideo> {
|
|
|
@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);
|
|
|
|
|
|
+ @Select("select video_id dict_value, title dict_label from fs_user_course_video where course_id=#{id} and is_del = 0 and is_on_put = 0 order by course_sort, video_id")
|
|
|
+ List<OptionsVO> selectFsUserCourseVideoAllListV2(@Param("id") Long id);
|
|
|
+
|
|
|
@Select({"<script> " +
|
|
|
"select v.*,p.red_packet_money company_red_packet_money from fs_user_course_video v " +
|
|
|
"LEFT JOIN fs_user_course_video_red_package p on p.video_id= v.video_id and p.company_id =#{maps.companyId} and p.data_type = 1 " +
|
|
|
@@ -211,6 +214,9 @@ public interface FsUserCourseVideoMapper extends BaseMapper<FsUserCourseVideo> {
|
|
|
" <if test=\"data.keyword != null and data.keyword !='' \">\n" +
|
|
|
" AND v.title LIKE concat('%',#{data.keyword},'%')\n" +
|
|
|
" </if>" +
|
|
|
+ " <if test=\"data.isOnPut != null\">\n" +
|
|
|
+ " AND v.is_on_put = #{data.isOnPut}\n" +
|
|
|
+ " </if>" +
|
|
|
"order by v.course_sort asc, v.video_id asc " +
|
|
|
"</script>")
|
|
|
List<FsCourseVideoListBySidebarVO> getFsCourseVideoListBySidebar(@Param("data") FsCourseListBySidebarParam param);
|