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 u.company_id = co.id where s.rec_status = 'A' and c.child_name like concat ('%',#{param.childName},'%') and s.pay_status !=#{param.neStatus} and s.scene_source in (1,2,12,13,14) and s.scene_source = 3 and s.scene_source = 4 and s.scene_source = 4 and is_obj = 1 and s.scene_source = 5 and s.scene_source = 5 and is_obj = 1 and co.company_name like concat ('%',#{param.companyName},'%') and ( s.user_id = #{param.userId} or co.id = #{param.companyId} or s.num in #{coNum} ) and (co.id = #{param.companyId} or s.user_id = #{param.userId} ) and s.num in #{num} )