Commit 4bd9d2b3 authored by liuyuanjun's avatar liuyuanjun

修改sql查询语句

parent 2e842456
...@@ -221,8 +221,9 @@ public interface BLessonRepository extends BaseMapper<BLesson> { ...@@ -221,8 +221,9 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" and br.corp_id = #{curUser.corpId} "+ " and br.corp_id = #{curUser.corpId} "+
" left join b_recommend_son brs on br.business_id = brs.recommend_id " + " left join b_recommend_son brs on br.business_id = brs.recommend_id " +
// " left join b_course bc on bc.business_id = bl.course_id " + // " left join b_course bc on bc.business_id = bl.course_id " +
" left join b_lesson_corp blc on blc.lesson_id = bl.business_id and bl.corp_id = '###' " +
" where bl.del_flag != 1 and bl.flag = 1 " + " where bl.del_flag != 1 and bl.flag = 1 " +
" and bl.corp_id = #{curUser.corpId} "+ " and (bl.corp_id = #{curUser.corpId} or blc.corp_id = #{curUser.corpId}) "+
" and bl.release_state = 2 " + " and bl.release_state = 2 " +
" and ((brs.type = 0 and brs.target_id = #{curUser.userId}) " + " and ((brs.type = 0 and brs.target_id = #{curUser.userId}) " +
" <if test=\"departs != null and departs.size() > 0 \"> " + " <if test=\"departs != null and departs.size() > 0 \"> " +
......
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