hanfucheng 6 月之前
父節點
當前提交
ba5f41d79f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/resources/mapper/lawenforcement/LawenforcementViewMapper.xml

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