|
@@ -199,10 +199,12 @@
|
|
|
<if test="param.sortByAlbumIdDesc != null">
|
|
|
if(isnull(tam.id_),0,1),
|
|
|
</if>
|
|
|
- <if test="param.myself == null or param.myself == false ">
|
|
|
- t.top_flag_ desc,t.sort_number_ desc,
|
|
|
+ <if test="param.myself != null and param.myself == true ">
|
|
|
+ t.cbs_music_sheet_id_ desc,
|
|
|
</if>
|
|
|
- t.cbs_music_sheet_id_ desc
|
|
|
+ CONVERT(t.music_sheet_name_ USING gbk) COLLATE gbk_chinese_ci,
|
|
|
+ t.music_sheet_name_ COLLATE utf8mb4_bin,
|
|
|
+ t.music_sheet_name_ REGEXP '^[0-9]' DESC, t.create_time_ DESC
|
|
|
</select>
|
|
|
|
|
|
<sql id="QueryInfo">
|
|
@@ -388,14 +390,24 @@
|
|
|
<if test="param.id != null">
|
|
|
<if test="param.type == 2">
|
|
|
and amr.album_id_ = #{param.id}
|
|
|
- order by amr.sort_number_ desc, t.id_ desc
|
|
|
+ order by amr.sort_number_ desc,
|
|
|
+ CONVERT(t.music_sheet_name_ USING gbk) COLLATE gbk_chinese_ci,
|
|
|
+ t.music_sheet_name_ COLLATE utf8mb4_bin,
|
|
|
+ t.music_sheet_name_ REGEXP '^[0-9]' DESC, t.create_time_ DESC
|
|
|
</if>
|
|
|
<if test="param.type == 1">
|
|
|
and t.id_ not in(select amr2.music_sheet_id_ from album_music_relate amr2
|
|
|
where amr2.album_id_ = #{param.id})
|
|
|
- order by t.id_ desc
|
|
|
+ ORDER BY CONVERT(t.music_sheet_name_ USING gbk) COLLATE gbk_chinese_ci,
|
|
|
+ t.music_sheet_name_ COLLATE utf8mb4_bin,
|
|
|
+ t.music_sheet_name_ REGEXP '^[0-9]' DESC, t.create_time_ DESC
|
|
|
</if>
|
|
|
</if>
|
|
|
+ <if test="param.id == null">
|
|
|
+ ORDER BY CONVERT(t.music_sheet_name_ USING gbk) COLLATE gbk_chinese_ci,
|
|
|
+ t.music_sheet_name_ COLLATE utf8mb4_bin,
|
|
|
+ t.music_sheet_name_ REGEXP '^[0-9]' DESC, t.create_time_ DESC
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -528,7 +540,6 @@
|
|
|
group by msar.music_sheet_id_
|
|
|
</if>
|
|
|
order by
|
|
|
-
|
|
|
<choose>
|
|
|
<when test="param.musicSortType != null and param.musicSortType.code == 'TOP'">
|
|
|
t.top_flag_ desc, t.sort_number_ desc,
|
|
@@ -540,12 +551,14 @@
|
|
|
t.first_pass_audit_time_ desc,
|
|
|
</when>
|
|
|
<otherwise>
|
|
|
- <if test="param.myself == null or param.myself == false ">
|
|
|
- t.top_flag_ desc, t.sort_number_ desc, t.favorite_count_ desc,
|
|
|
+ <if test="param.myself != null and param.myself == true ">
|
|
|
+ t.cbs_music_sheet_id_ desc,
|
|
|
</if>
|
|
|
</otherwise>
|
|
|
</choose>
|
|
|
- t.id_ desc
|
|
|
+ CONVERT(t.music_sheet_name_ USING gbk) COLLATE gbk_chinese_ci,
|
|
|
+ t.music_sheet_name_ COLLATE utf8mb4_bin,
|
|
|
+ t.music_sheet_name_ REGEXP '^[0-9]' DESC, t.create_time_ DESC
|
|
|
</select>
|
|
|
|
|
|
<select id="selectMyMusicPage" resultType="com.yonge.cooleshow.biz.dal.vo.MusicSheetVo">
|