Quellcode durchsuchen

查询BUG处理

zhangbin vor 1 Jahr
Ursprung
Commit
7a4e39fcdd

+ 2 - 2
jsjp-service/src/main/resources/mapper/tms/TmsStudentInfoMapper.xml

@@ -150,7 +150,7 @@
             AND t1.TSO_BUSITYPE in ('0', '1')
             AND t1.TSO_LOGOUT = 0
             <if test="field != null  and field != ''"> AND (t1.Tso_Name like '%' || #{field,jdbcType=VARCHAR} || '%' or t1.TSO_IDCARD like '%' || #{field,jdbcType=VARCHAR} || '%' or t1.Tso_Phone like '%' || #{field,jdbcType=VARCHAR} || '%') </if>
-            <if test="schoolId != null "> and t1.TSO_SCHOOL_ID in
+            <if test="schoolId != null and schoolId !='' "> and t1.TSO_SCHOOL_ID in
                 <foreach item="sid" index="index" collection="schoolId.split(',')" open="(" separator="," close=")">
                     #{sid}
                 </foreach>
@@ -170,7 +170,7 @@
             AND t1.TSO_BUSITYPE in ('0', '1')
             AND t1.TSO_LOGOUT = 0
             <if test="field != null  and field != ''"> AND (t1.Tso_Name like '%' || #{field,jdbcType=VARCHAR} || '%' or t1.TSO_IDCARD like '%' || #{field,jdbcType=VARCHAR} || '%' or t1.Tso_Phone like '%' || #{field,jdbcType=VARCHAR} || '%') </if>
-            <if test="schoolId != null "> and t1.TSO_SCHOOL_ID in
+            <if test="schoolId != null and schoolId !='' "> and t1.TSO_SCHOOL_ID in
                 <foreach item="sid" index="index" collection="schoolId.split(',')" open="(" separator="," close=")">
                     #{sid}
                 </foreach>