Browse Source

曲目排序规则调整

zouxuan 5 months ago
parent
commit
5acc0786b9

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

@@ -199,7 +199,7 @@
         <if test="param.sortByAlbumIdDesc != null">
             if(isnull(tam.id_),0,1),
         </if>
-        <if test="param.myself != null or param.myself == true ">
+        <if test="param.myself != null and param.myself == true ">
             t.cbs_music_sheet_id_ desc,
         </if>
         CONVERT(t.music_sheet_name_ USING gbk) COLLATE gbk_chinese_ci,
@@ -551,7 +551,7 @@
                 t.first_pass_audit_time_ desc,
             </when>
             <otherwise>
-                <if test="param.myself != null or param.myself == true ">
+                <if test="param.myself != null and param.myself == true ">
                     t.cbs_music_sheet_id_ desc,
                 </if>
             </otherwise>