left join t_user u on s.user_id = u.id
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 c.sn_code like concat ('%',#{param.snCode},'%')
and u.user_name like concat ('%',#{param.userName},'%')
and s.user_id = #{param.userId}
and s.scene_source in (1,2,12,13,14)
and s.scene_source = 3
and co.id = #{param.companyId}