|
@@ -1343,11 +1343,17 @@
|
|
|
<if test="param.albumId != null">
|
|
|
left join tenant_album_music tam on t.id_ = tam.music_sheet_id_ and tam.del_flag_ = 0
|
|
|
</if>
|
|
|
+ <if test="param.favoriteFlag != null and param.favoriteFlag == 1">
|
|
|
+ left join music_favorite mf on t.id_ = mf.music_sheet_id_ and mf.user_id_ = #{param.userId} and mf.client_type_ = #{param.clientType}
|
|
|
+ </if>
|
|
|
<where>
|
|
|
t.cbs_music_sheet_id_ is not null
|
|
|
<if test="param.name != null and param.name != ''">
|
|
|
and t.music_sheet_name_ like concat('%',#{param.name},'%')
|
|
|
</if>
|
|
|
+ <if test="param.favoriteFlag != null and param.favoriteFlag == 1">
|
|
|
+ and mf.id_ is not null
|
|
|
+ </if>
|
|
|
<if test="param.status != null">
|
|
|
|
|
|
<if test="param.providerType != null">
|
|
@@ -1429,6 +1435,9 @@
|
|
|
order by
|
|
|
max(msar.create_time_) desc
|
|
|
</if>
|
|
|
+ <if test="param.favoriteFlag != null and param.favoriteFlag == 1">
|
|
|
+ order by mf.id_ desc
|
|
|
+ </if>
|
|
|
<if test="param.recentFlag == null">
|
|
|
order by tam.level_,tam.type_,tam.sort_number_
|
|
|
</if>
|