Commit 445b7c4a authored by liuyang's avatar liuyang

fixed bug:后台配置的推荐视频未生效

parent 1ef7cc88
...@@ -87,13 +87,14 @@ ...@@ -87,13 +87,14 @@
c.`name` course_name, c.`name` course_name,
c.logo_url course_logo_url, c.logo_url course_logo_url,
c.charge_model, c.charge_model,
c.allow c.allow,
IF(r.sort_no IS NULL,10000000,r.sort_no) sort_no
from course c from course c
LEFT JOIN recommend_config r on r.course_id = c.id LEFT JOIN recommend_config r on r.course_id = c.id
WHERE c.is_del = 0 WHERE c.is_del = 0
and c.`status` = 'UP' and c.`status` = 'UP'
and c.allow = 'ALL' and c.allow = 'ALL'
ORDER BY r.sort_no ASC,c.create_time DESC ORDER BY sort_no ASC,c.create_time DESC
</select> </select>
<select id="findListByTags" resultType="com.qkdata.biz.management.entity.CoursePO"> <select id="findListByTags" resultType="com.qkdata.biz.management.entity.CoursePO">
SELECT c.* SELECT c.*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment