liujunchi 2 lat temu
rodzic
commit
132e7b7b0b

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

@@ -338,13 +338,13 @@
         </where>
         order by
         <choose>
-            <when test="param.musicSortType.code == 'TOP'">
+            <when test="param.musicSortType != null and param.musicSortType.code == 'TOP'">
                 t.top_flag_ desc, t.sort_number_ desc,
             </when>
-            <when test="param.musicSortType.code == 'HOT'">
+            <when test="param.musicSortType != null and param.musicSortType.code == 'HOT'">
                 t.favorite_count_ desc,
             </when>
-            <when test="param.musicSortType.code == 'NEW'">
+            <when test="param.musicSortType != null and param.musicSortType.code == 'NEW'">
                 t.first_pass_audit_time_ desc,
             </when>
             <otherwise>