瀏覽代碼

酷乐秀曲目来源改为内容平台

zouxuan 1 年之前
父節點
當前提交
722805c2e2
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      cooleshow-user/user-biz/src/main/resources/config/mybatis/SubjectMapper.xml

+ 2 - 2
cooleshow-user/user-biz/src/main/resources/config/mybatis/SubjectMapper.xml

@@ -37,7 +37,7 @@
                 <if test="type == null or type =='MUSIC'">
                     union all
                     (select a.music_subject_ as subject_id_ from music_sheet a
-                    where a.del_flag_ = 0 and a.state_ = 1
+                    where a.del_flag_ = 0 and a.state_ = 1 a.cbs_music_sheet_id_ IS NOT NULL
                     GROUP BY a.music_subject_)
                 </if>
                 <if test="type == null or type =='ALBUM'">
@@ -71,7 +71,7 @@
             </trim>
             ) a group by a.subject_id_
         ) a on t.id_ = a.subject_id_
-        where t.parent_subject_id_ != 0
+        where t.parent_subject_id_ != 0 group by t.id_
     </select>
 
     <!-- 向数据库增加一条记录 -->