@@ -13,7 +13,7 @@
du.is_deleted = 'N'
AND d.is_deleted = 'N'
AND d.id = du.dept_id
- <if test="depts !=null and depts!=0">
+ <if test="depts !=null and depts.size!=0">
AND du.dept_id IN
<foreach collection="depts" item="id" open="(" close=")" separator=",">
#{id}