瀏覽代碼

酷乐秀曲目来源改为内容平台

zouxuan 1 年之前
父節點
當前提交
24f9c9d5fd
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      cooleshow-user/user-biz/src/main/resources/config/mybatis/MusicSheetMapper.xml

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

@@ -157,7 +157,7 @@
         <if test="param.myself == null or param.myself == false ">
             t.top_flag_ desc,t.sort_number_ desc,
         </if>
-         t.id_ desc
+         t.cbs_music_sheet_id_ desc
     </select>
 
     <sql id="QueryInfo">
@@ -169,6 +169,11 @@
             t.music_sheet_name_ like concat('%',#{param.idAndName},'%') or
             t.composer_ like concat ('%',#{param.idAndName},'%'))
         </if>
+        <if test="param.search != null and param.search != ''">
+            and (t.cbs_music_sheet_id_ like concat('%',#{param.search},'%') or
+            t.music_sheet_name_ like concat('%',#{param.search},'%') or
+            t.composer_ like concat ('%',#{param.search},'%'))
+        </if>
         <if test="param.providerType != null">
             and t.provider_type_ = #{param.providerType}
         </if>