Quellcode durchsuchen

1.处理分享时,查询乐团列表时,只查询进行中的乐团

yuanliang vor 2 Jahren
Ursprung
Commit
317925539f
1 geänderte Dateien mit 3 neuen und 5 gelöschten Zeilen
  1. 3 5
      mec-biz/src/main/resources/config/mybatis/MusicGroupMapper.xml

+ 3 - 5
mec-biz/src/main/resources/config/mybatis/MusicGroupMapper.xml

@@ -306,11 +306,6 @@
         SELECT mg.* FROM music_group mg
         LEFT JOIN cooperation_organ co ON mg.cooperation_organ_id_ = co.id_
         <include refid="musicGroupQueryPageSql"/>
-        <where>
-            <if test="status != null and status.trim() != ''">
-                AND mg.status_ = #{stauts}
-            </if>
-        </where>
         ORDER BY mg.create_time_ DESC,mg.id_
         <include refid="global.limit"/>
     </select>
@@ -343,6 +338,9 @@
             <if test="courseViewType != null">
                 AND mg.course_view_type_ = #{courseViewType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
             </if>
+            <if test="status != null and status.trim() != ''">
+                AND mg.status_ = #{stauts}
+            </if>
             <if test="musicGroupIds!=null and musicGroupIds.size()>0">
                 AND mg.id_ IN
                 <foreach collection="musicGroupIds" item="musicGroupId" open="(" close=")" separator=",">