@@ -249,7 +249,7 @@
WHERE 1=1
<choose>
<when test="deviceId != null and deviceId != ''">
- and a.device_id = #{deviceId}
+ and c.device_id = #{deviceId}
</when>
<otherwise>and a.record_status in ('lawenforcement_type_4','lawenforcement_type_6')</otherwise>
</choose>