gao.qiang hace 1 año
padre
commit
b122e463ee

+ 1 - 1
base-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -285,7 +285,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 			<if test="status != null and status != 0">
 				and u.status=#{status}
 			</if>
-			<if test="ids != null">
+			<if test="ids != null and ids.size>0">
 			    and u.id in
 				<foreach item="items" collection="ids" separator="," open="(" close=")" index="">
 					#{items}