lyhzzz 1 year ago
parent
commit
3636b18e08
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/mapper/agent/SceneProMapper.xml

+ 1 - 1
src/main/resources/mapper/agent/SceneProMapper.xml

@@ -32,7 +32,7 @@
         left join t_camera c on s.camera_id = c.id
         left join t_camera_detail d on c.id = d.camera_id
         left join t_company co on d.company_id = co.id
-        where s.rec_status = 'A' and d.agent_id = #{param.agentId}
+        where s.rec_status = 'A' and c.rec_status = 'A' and d.agent_id = #{param.agentId}
         <if test="param.snCode != null and param.snCode !='' ">
             and c.sn_code like concat ('%',#{param.snCode},'%')
         </if>