소스 검색

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

zouxuan 4 년 전
부모
커밋
15532ef41d
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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>
     <sql id="queryPageSql">
         <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 test="search != null and search != ''">
                 AND (s.user_id_ = #{search} OR su.username_ LIKE CONCAT('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%'))