lyhzzz 3 년 전
부모
커밋
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}