Browse Source

调整61活动学员可排课次数

zouxuan 4 years ago
parent
commit
15532ef41d
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}, '%'))