Commit 7a1d242e authored by luzhuang's avatar luzhuang

feat: 平台推荐课程标签添加字段区分

parent 8b6fa377
......@@ -11,4 +11,7 @@ public class QueryLabelResDTO {
@ApiModelProperty(value = "标签名")
private String lName;
@ApiModelProperty(value = "标签类型(1:平台推荐)")
private String type;
}
......@@ -340,7 +340,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
List<BLesson> queryInterested(@Param("curUser") CurUser curUser, @Param("departs") List<String> departs);
//查询课程中的标签
@Select(" <script> select blb.business_id businessId,blb.l_name lName" +
@Select(" <script> select blb.business_id businessId,blb.l_name lName,'0' type" +
" from b_lesson_label bll " +
" left join b_label blb on bll.label_id = blb.business_id " +
" left join b_lesson bls on bls.business_id = bll.lesson_id " +
......@@ -358,7 +358,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
* @return
*/
@Select("select * from ( " +
"select business_id businessId,l_name lName from b_label " +
"select business_id businessId,l_name lName ,'1' type from b_label " +
"where business_id in (SELECT " +
"SUBSTRING_INDEX(SUBSTRING_INDEX((select push_lable from b_lesson where business_id = #{lessonId}),',',help_topic_id+1),',',-1) AS num " +
"FROM mysql.help_topic " +
......@@ -368,7 +368,7 @@ public interface BLessonRepository extends BaseMapper<BLesson> {
"and corp_id = '###' ) a " +
"UNION " +
"select * from ( " +
"SELECT blb.business_id businessId,blb.l_name lName " +
"SELECT blb.business_id businessId,blb.l_name lName ,'0' type " +
"FROM " +
" b_lesson_label bll " +
" LEFT JOIN b_label blb ON bll.label_id = blb.business_id " +
......
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