ソースを参照

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

zouxuan 1 年間 前
コミット
722805c2e2

+ 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>
 
     <!-- 向数据库增加一条记录 -->