|
@@ -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>
|