|
@@ -253,7 +253,7 @@
|
|
|
<when test="deviceId != null and deviceId != ''">
|
|
|
and c.device_id = #{deviceId}
|
|
|
</when>
|
|
|
- <otherwise>and a.record_status in ('lawenforcement_type_4','lawenforcement_type_6')</otherwise>
|
|
|
+ <otherwise>and a.record_status in ('lawenforcement_type_4','lawenforcement_type_6') and c.record_state = 0</otherwise>
|
|
|
</choose>
|
|
|
<if test="deviceId != null and deviceId != ''"> LIMIT 5 </if>
|
|
|
</select>
|