Browse Source

曲目排序规则调整

zouxuan 5 months ago
parent
commit
439690e3f0

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

@@ -202,7 +202,9 @@
         <if test="param.myself == null or param.myself == false ">
             t.top_flag_ desc,t.sort_number_ 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">