select device_id, picture, device_name, mac, sn, model_id, hardware_version_id, vehicle_num, area_id, activation_time, online_status, create_by, create_time, update_by, update_time, last_time, last_location_time, gps, remark, status, lock_status, location, remaining_power, voltage, qrcode, longitude, latitude, is_area_out_outage, is_admin_unlocking from et_device insert into et_device picture, device_name, mac, sn, model_id, hardware_version_id, vehicle_num, version, area_id, activation_time, online_status, create_by, create_time, update_by, update_time, last_time, last_location_time, gps, remark, status, lock_status, location, remaining_power, voltage, qrcode, longitude, latitude, is_area_out_outage, #{picture}, #{deviceName}, #{mac}, #{sn}, #{modelId}, #{hardwareVersionId}, #{vehicleNum}, #{version}, #{areaId}, #{activationTime}, #{onlineStatus}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{lastTime}, #{lastLocationTime}, #{gps}, #{remark}, #{status}, #{lockStatus}, #{location}, #{remainingPower}, #{voltage}, #{qrcode}, #{longitude}, #{latitude}, #{isAreaOutOutage}, update et_device picture = #{picture}, device_name = #{deviceName}, mac = #{mac}, sn = #{sn}, model_id = #{modelId}, hardware_version_id = #{hardwareVersionId}, vehicle_num = #{vehicleNum}, version = #{version}, area_id = #{areaId}, activation_time = #{activationTime}, online_status = #{onlineStatus}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, last_time = #{lastTime}, last_location_time = #{lastLocationTime}, gps = #{gps}, remark = #{remark}, status = #{status}, lock_status = #{lockStatus}, location = #{location}, remaining_power = #{remainingPower}, voltage = #{voltage}, qrcode = #{qrcode}, longitude = #{longitude}, latitude = #{latitude}, is_area_out_outage = #{isAreaOutOutage}, is_admin_unlocking = #{isAdminUnlocking}, where device_id = #{deviceId} update et_device picture = #{picture}, device_name = #{deviceName}, mac = #{mac}, sn = #{sn}, model_id = #{modelId}, hardware_version_id = #{hardwareVersionId}, vehicle_num = #{vehicleNum}, version = #{version}, area_id = #{areaId}, activation_time = #{activationTime}, online_status = #{onlineStatus}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, last_time = #{lastTime}, last_location_time = #{lastLocationTime}, gps = #{gps}, remark = #{remark}, status = #{status}, lock_status = #{lockStatus}, location = #{location}, remaining_power = #{remainingPower}, voltage = #{voltage}, qrcode = #{qrcode}, longitude = #{longitude}, latitude = #{latitude}, is_area_out_outage = #{isAreaOutOutage}, is_admin_unlocking = #{isAdminUnlocking}, where device_id = #{deviceId} update et_device picture = #{picture}, device_name = #{deviceName}, mac = #{mac}, model_id = #{modelId}, hardware_version_id = #{hardwareVersionId}, vehicle_num = #{vehicleNum}, version = #{version}, area_id = #{areaId}, activation_time = #{activationTime}, online_status = #{onlineStatus}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, last_time = #{lastTime}, last_location_time = #{lastLocationTime}, gps = #{gps}, remark = #{remark}, status = #{status}, lock_status = #{lockStatus}, location = #{location}, remaining_power = #{remainingPower}, voltage = #{voltage}, qrcode = #{qrcode}, longitude = #{longitude}, latitude = #{latitude}, is_area_out_outage = #{isAreaOutOutage}, is_admin_unlocking = #{isAdminUnlocking}, where sn = #{sn} update delete from et_device where device_id = #{deviceId} delete from et_device where device_id in #{deviceId} update et_device d set d.status = '1' where device_id in #{deviceId} update et_device d set d.status = '8' where device_id in #{deviceId}