浏览代码

曲目排序规则调整

zouxuan 9 月之前
父节点
当前提交
830a028b24
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      mec-biz/src/main/resources/config/mybatis/SysMusicScoreMapper.xml

+ 3 - 1
mec-biz/src/main/resources/config/mybatis/SysMusicScoreMapper.xml

@@ -148,7 +148,9 @@
 		LEFT JOIN sys_user su ON ses.create_user_id_ = su.id_
 		<include refid="queryPageSql"/>
 		GROUP BY ses.id_
-		ORDER BY ses.cbs_music_categories_id_ DESC,ses.order_ ASC,ses.create_time_ DESC,ses.id_ desc
+		ORDER BY CONVERT(ses.name_ USING gbk) COLLATE gbk_chinese_ci,
+		ses.name_ COLLATE utf8mb4_bin,
+		ses.name_ REGEXP '^[0-9]' DESC, ses.create_time_ DESC
 		<include refid="global.limit"/>
 	</select>