lyhzzz 2 年之前
父节点
当前提交
c8e1ca5dd2
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/main/resources/mapper/LogMapper.xml
  2. 1 1
      src/main/resources/mapper/UserMapper.xml

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