|
@@ -136,6 +136,10 @@
|
|
,(select group_concat(s.name_) from subject s
|
|
,(select group_concat(s.name_) from subject s
|
|
where find_in_set(s.id_,t.music_subject_) and s.del_flag_ = 0 ) as subjectNames
|
|
where find_in_set(s.id_,t.music_subject_) and s.del_flag_ = 0 ) as subjectNames
|
|
from music_sheet t
|
|
from music_sheet t
|
|
|
|
+ left join sys_user su on t.create_by_ = su.id_
|
|
|
|
+ <if test="param.sortByAlbumIdDesc != null">
|
|
|
|
+ left join tenant_album_music tam on tam.music_sheet_id_ = t.id_ and tam.tenant_album_id_ = #{param.sortByAlbumIdDesc} and tam.del_flag_=0
|
|
|
|
+ </if>
|
|
<where>
|
|
<where>
|
|
t.cbs_music_sheet_id_ IS NOT NULL
|
|
t.cbs_music_sheet_id_ IS NOT NULL
|
|
<include refid="QueryInfo"/>
|
|
<include refid="QueryInfo"/>
|
|
@@ -147,6 +151,9 @@
|
|
</if>
|
|
</if>
|
|
</where>
|
|
</where>
|
|
order by
|
|
order by
|
|
|
|
+ <if test="param.sortByAlbumIdDesc != null">
|
|
|
|
+ if(isnull(tam.id_),0,1),
|
|
|
|
+ </if>
|
|
<if test="param.myself == null or param.myself == false ">
|
|
<if test="param.myself == null or param.myself == false ">
|
|
t.top_flag_ desc,t.sort_number_ desc,
|
|
t.top_flag_ desc,t.sort_number_ desc,
|
|
</if>
|
|
</if>
|