zouxuan 3 éve
szülő
commit
e2464e3854

+ 1 - 4
mec-biz/src/main/resources/config/mybatis/ClassGroupMapper.xml

@@ -1499,7 +1499,7 @@
 
     <sql id="queryClassGroupPageSql">
         <where>
-            cg.group_type_ = #{groupType} AND cg.del_flag_ = 0
+            cg.group_type_ = #{groupType} AND cg.del_flag_ = 0 AND cg.tenant_id_ = #{tenantId}
             <if test="type != null">
                 AND type_ = #{type,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
             </if>
@@ -1509,9 +1509,6 @@
             <if test="educationUserId != null">
                 AND mg.educational_teacher_id_ = #{educationUserId}
             </if>
-            <if test="tenant_id_  != null">
-                AND cg.tenant_id_ = #{tenantId}
-            </if>
             <if test="search != null and search != ''">
                 AND (cg.id_ LIKE CONCAT('%',#{search},'%') OR cg.name_ LIKE CONCAT('%',#{search},'%') OR mg.name_ LIKE CONCAT('%',#{search},'%') OR cg.music_group_id_ LIKE CONCAT('%',#{search},'%'))
             </if>