|
@@ -189,7 +189,7 @@
|
|
|
left join (select count(1) as num,amr.album_id_
|
|
|
from album_music_relate amr
|
|
|
join music_sheet ms on amr.music_sheet_id_ = ms.id_
|
|
|
- where ms.del_flag_ = 0 and ms.state_ = 1 and ms.audit_status_ = 'PASS'
|
|
|
+ where ms.del_flag_ = 0 and ms.state_ = 1 and ms.audit_status_ = 'PASS' and find_in_set('PLATFORM',ms.provider_type_)
|
|
|
group by amr.album_id_) t1 on t1.album_id_ = t.id_
|
|
|
left join (select count(1) as num,af.album_id_ from album_favorite af
|
|
|
group by af.album_id_
|
|
@@ -241,7 +241,7 @@
|
|
|
,(select count(1) as num
|
|
|
from album_music_relate amr
|
|
|
join music_sheet ms on amr.music_sheet_id_ = ms.id_
|
|
|
- where ms.del_flag_ = 0 and ms.state_ = 1 and ms.audit_status_ = 'PASS'
|
|
|
+ where ms.del_flag_ = 0 and ms.state_ = 1 and ms.audit_status_ = 'PASS' and find_in_set('PLATFORM',ms.provider_type_)
|
|
|
and amr.album_id_ = t.id_) as musicSheetCount
|
|
|
,if(t2.num >0,t2.num,0) as albumFavoriteCount
|
|
|
from music_album t
|
|
@@ -308,6 +308,7 @@
|
|
|
</if>
|
|
|
<if test="paymentType != null">
|
|
|
AND t2.payment_type_ = #{paymentType}
|
|
|
+ and find_in_set('PLATFORM',t2.provider_type_)
|
|
|
</if>
|
|
|
</where>
|
|
|
GROUP BY t1.album_id_
|