Commit 61b8610a authored by luzhuang's avatar luzhuang

fix: web端课程显示平台推荐的课程

parent 7821acbd
...@@ -1078,6 +1078,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> { ...@@ -1078,6 +1078,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
"u1.name AS createByName " + "u1.name AS createByName " +
"FROM " + "FROM " +
"b_lesson les " + "b_lesson les " +
"left join b_lesson_corp blc on blc.lesson_id = les.business_id " +
"LEFT JOIN b_course b1 ON b1.business_id = les.course_id " + "LEFT JOIN b_course b1 ON b1.business_id = les.course_id " +
"AND b1.corp_id = #{corpId} " + "AND b1.corp_id = #{corpId} " +
"and b1.del_flag != 1 and b1.flag = 1 "+ "and b1.del_flag != 1 and b1.flag = 1 "+
...@@ -1092,7 +1093,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> { ...@@ -1092,7 +1093,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
"and u1.del_flag != 1 and u1.flag = 1 "+ "and u1.del_flag != 1 and u1.flag = 1 "+
"WHERE 1=1 " + "WHERE 1=1 " +
"and les.del_flag != 1 and les.flag = 1 "+ "and les.del_flag != 1 and les.flag = 1 "+
"AND les.corp_id = #{corpId}" + "AND (les.corp_id = #{corpId} or (les.corp_id = '###' and blc.corp_id = #{corpId}))" +
"<if test='!isAdmin'>" + "<if test='!isAdmin'>" +
"AND les.create_by IN" + "AND les.create_by IN" +
"<foreach item='item' index='index' collection='CurUserSet' open='(' close=')' separator=','> " + "<foreach item='item' index='index' collection='CurUserSet' open='(' close=')' separator=','> " +
......
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