视频 查看集 和 集数列表 拆分2
配置日志
This commit is contained in:
@@ -3,13 +3,14 @@
|
||||
<mapper namespace="com.sqx.modules.course.dao.CourseDetailsDao">
|
||||
|
||||
<select id="courseSets" resultType="com.sqx.modules.course.vo.CourseDetailsSetVo">
|
||||
select c.course_id as courseId
|
||||
, c.course_details_id as courseDetailsId
|
||||
, c.course_details_name as courseDetailsName
|
||||
, c.price as countPrice
|
||||
, ifnull(#{price}, 0, #{price}) as price
|
||||
, ifnull(#{wholesalePrice}, 0, #{wholesalePrice}) as wholesalePrice
|
||||
, IF(#{isPrice}, c.is_price, 2) AS isPrice
|
||||
select c.course_id as courseId
|
||||
, c.course_details_id as courseDetailsId
|
||||
, c.course_details_name as courseDetailsName
|
||||
, c.price as countPrice
|
||||
, c.sort as sort
|
||||
, ifnull(#{price}, 0) as price
|
||||
, ifnull(#{wholesalePrice}, 0) as wholesalePrice
|
||||
, IF(#{isPrice} = 1, c.is_price, 2) AS isPrice
|
||||
from course_details c
|
||||
where c.course_id = #{courseId}
|
||||
order by c.sort asc
|
||||
@@ -22,7 +23,8 @@
|
||||
, c.title_img as titleImg
|
||||
, c.video_url as videoUrl
|
||||
, c.good_num as goodNum
|
||||
, ifnull(#{collect}, 0, 1) as isCollect
|
||||
, c.sort as sort
|
||||
, IF(#{collect} = 1, 1, 0) AS isCollect
|
||||
from course_details c
|
||||
where c.course_id = #{courseId}
|
||||
and sort > #{starSort}
|
||||
|
||||
Reference in New Issue
Block a user