Browse Source

曲目排序规则调整

zouxuan 5 months ago
parent
commit
1477d4ccf5

+ 3 - 3
cooleshow-user/user-biz/src/main/resources/config/mybatis/MusicSheetMapper.xml

@@ -199,12 +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 or param.myself == true ">
+            t.cbs_music_sheet_id_ desc,
         </if>
         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;
+        t.music_sheet_name_ REGEXP '^[0-9]' DESC, t.create_time_ DESC
     </select>
 
     <sql id="QueryInfo">