delete from dev_tower_data_run where id #{id} and update dev_tower_project_config set online = #{online} where device_sn=#{deviceSn}