songxinlu пре 3 година
родитељ
комит
788d5d0df4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      dblayer-mbg/src/main/resources/mapper/DeptUserMapper.xml

+ 1 - 1
dblayer-mbg/src/main/resources/mapper/DeptUserMapper.xml

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