@@ -661,6 +661,7 @@
on
b.dept_id = c.id
where b.id is not null
+ and c.type = '3'
<if test="deviceIds != null and !deviceIds.isEmpty()">
and c.id in
<foreach collection="deviceIds" item="id" open="(" separator="," close=")">