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>