lyhzzz 2 lat temu
rodzic
commit
c8e1ca5dd2

+ 1 - 1
src/main/resources/mapper/LogMapper.xml

@@ -23,7 +23,7 @@
         <if test="param.endTime != null and param.endTime != ''">
             and l.create_time  &lt;=   #{param.endTime}
         </if>
-        <if test="param.deptIds != null and param.deptIds.length >0 ''">
+        <if test="param.deptIds != null and param.deptIds.size >0 ''">
             and u.dept_id in
             <foreach collection="param.deptIds" item="deptId" open="(" separator="," close=")">
                 #{deptId}

+ 1 - 1
src/main/resources/mapper/UserMapper.xml

@@ -22,7 +22,7 @@
         <if test="param.endTime != null and param.endTime != ''">
             and u.create_time  &lt;=   #{param.endTime}
         </if>
-        <if test="param.deptIds != null and param.deptIds.length >0 ''">
+        <if test="param.deptIds != null and param.deptIds.size >0 ''">
             and u.dept_id in
             <foreach collection="param.deptIds" item="deptId" open="(" separator="," close=")">
                 #{deptId}