Commit d7df7fb0 authored by liuyuanjun's avatar liuyuanjun

修改sql

parent b961c816
...@@ -1088,12 +1088,12 @@ public interface BLessonRepository extends BaseMapper<BLesson> { ...@@ -1088,12 +1088,12 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
" left join b_viewrange_son bvs on bv.business_id = bvs.viewrange_id " + " left join b_viewrange_son bvs on bv.business_id = bvs.viewrange_id " +
" left join b_lesson_label bll on bl.business_id = bll.lesson_id " + " left join b_lesson_label bll on bl.business_id = bll.lesson_id " +
" left join b_lesson_corp blc on blc.lesson_id = b.business_id and b.corp_id = '###' " + " left join b_lesson_corp blc on blc.lesson_id = b.business_id and b.corp_id = '###' " +
" left join b_label blname on blname.business_id = bl.label_id or FIND_IN_SET(blname.business_id,b.push_lable)" +
" where b.del_flag != 1 and b.flag = 1 " + " where b.del_flag != 1 and b.flag = 1 " +
" and (b.corp_id = #{model.corpId} or blc.corp_id = #{model.corpId}) "+ " and (b.corp_id = #{model.corpId} or blc.corp_id = #{model.corpId}) "+
" <if test=\"model.valueScreen !=null and model.valueScreen != ''\"> ${model.valueScreen} </if>" + " <if test=\"model.valueScreen !=null and model.valueScreen != ''\"> ${model.valueScreen} </if>" +
" and b.business_id not in (SELECT DISTINCT b.business_id from " + " and b.business_id not in (SELECT DISTINCT b.business_id from " +
" b_lesson b left join b_lesson_person blp on b.business_id = blp.lesson_id " + " b_lesson b left join b_lesson_person blp on b.business_id = blp.lesson_id " +
" left join b_label blname on blname.business_id = bll.label_id or FIND_IN_SET(blname.business_id,b.push_lable)" +
" where blp.del_flag != 1 and blp.flag = 1 " + " where blp.del_flag != 1 and blp.flag = 1 " +
" and blp.person_id = #{model.userId} ) " + " and blp.person_id = #{model.userId} ) " +
" <if test=\"model.labelId !=null and model.labelId != ''\">" + " <if test=\"model.labelId !=null and model.labelId != ''\">" +
......
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