|
@@ -23,9 +23,13 @@
|
|
<if test="param.endTime != null and param.endTime != ''">
|
|
<if test="param.endTime != null and param.endTime != ''">
|
|
and l.create_time <= #{param.endTime}
|
|
and l.create_time <= #{param.endTime}
|
|
</if>
|
|
</if>
|
|
- <foreach collection="param.deptIds" item="deptId" open="(" separator="," close=")">
|
|
|
|
- and u.dept_id in #{deptId}
|
|
|
|
- </foreach>
|
|
|
|
|
|
+ <if test="param.deptIds != null and param.deptIds.length >0 ''">
|
|
|
|
+ and u.dept_id in
|
|
|
|
+ <foreach collection="param.deptIds" item="deptId" open="(" separator="," close=")">
|
|
|
|
+ #{deptId}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+
|
|
order by l.create_time desc
|
|
order by l.create_time desc
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|