zouxuan 5 年之前
父节点
当前提交
2358a6f5b0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mec-biz/src/main/resources/config/mybatis/StudentManageDao.xml

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

@@ -136,7 +136,7 @@
     <sql id="findStudentsByOrganIdSql">
         <where>
                 su.user_type_ LIKE '%STUDENT%' AND su.del_flag_ = 0
-            <if test="organId != null">
+            <if test="organId != null and organId != ''">
                 AND FIND_IN_SET(su.organ_id_,#{organId})
             </if>
             <if test="search != null and search != ''">
@@ -579,7 +579,7 @@
                 #{item}
             </foreach>
         </if>
-        <if test="organId != null">
+        <if test="organId != null and organId != ''">
             AND FIND_IN_SET(su.organ_id_,#{organId})
         </if>
         <if test="search != null and search != ''">