Browse Source

Merge branch '2021-07-19_children' of http://git.dayaedu.com/yonge/mec

zouxuan 4 years ago
parent
commit
90fa535047
1 changed files with 2 additions and 2 deletions
  1. 2 2
      mec-biz/src/main/resources/config/mybatis/StudentMapper.xml

+ 2 - 2
mec-biz/src/main/resources/config/mybatis/StudentMapper.xml

@@ -163,8 +163,8 @@
     </select>
     </select>
     <sql id="queryPageSql">
     <sql id="queryPageSql">
         <where>
         <where>
-            <if test="organId != null">
-                AND su.organ_id_ = #{organId}
+            <if test="organId != null and organId != ''">
+                AND FIND_IN_SET(su.organ_id_,#{organId})
             </if>
             </if>
             <if test="search != null and search != ''">
             <if test="search != null and search != ''">
                 AND (s.user_id_ = #{search} OR su.username_ LIKE CONCAT('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%'))
                 AND (s.user_id_ = #{search} OR su.username_ LIKE CONCAT('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%'))