hanfucheng vor 6 Monaten
Ursprung
Commit
ba5f41d79f

+ 1 - 1
src/main/resources/mapper/lawenforcement/LawenforcementViewMapper.xml

@@ -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>