فهرست منبع

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

zouxuan 1 سال پیش
والد
کامیت
9709250646
1فایلهای تغییر یافته به همراه5 افزوده شده و 12 حذف شده
  1. 5 12
      cooleshow-user/user-biz/src/main/resources/config/mybatis/MusicSheetMapper.xml

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

@@ -200,12 +200,12 @@
         <if test="param.state != null">
             and t.state_ = #{param.state}
         </if>
-        <if test="param.authStatus != null">
-            and msar.audit_state_ = #{param.authStatus}
-            <if test="param.authStatus == 'PASS'">
+        <if test="param.auditStatus != null">
+            and msar.audit_state_ = #{param.auditStatus}
+            <if test="param.auditStatus == 'PASS'">
                 AND t.state_ = 1
             </if>
-            <if test="param.authStatus == 'OUT_SALE'">
+            <if test="param.auditStatus == 'OUT_SALE'">
                 AND t.state_ = 0
             </if>
         </if>
@@ -418,15 +418,8 @@
         ,su.avatar_ as addUserAvatar
         from music_sheet t
         left join sys_user su on t.create_by_ = su.id_
-        <if test="param.authStatus != null">
+        <if test="param.auditStatus != null">
             left join music_sheet_auth_record msar ON msar.music_sheet_id_ = t.id_
-            and msar.audit_state_ = #{param.authStatus}
-            <if test="param.authStatus == 'PASS'">
-                AND ms.state_ = 1
-            </if>
-            <if test="param.authStatus == 'OUT_SALE'">
-                AND ms.state_ = 0
-            </if>
         </if>
         <where>
             <include refid="QueryInfo"/>