SELECT id, device_name, brand, device_code, longitude, latitude, dept_id, dept_name, working_status, device_type, warn_line, remark, address, open_warn, charger, charger_tel FROM centermonitor_t_monitoring_device m delete from centermonitor_t_monitoring_data_atmosphere where device_code = '${deviceCode}' delete from centermonitor_t_monitoring_data_soil_moisture where device_code = '${deviceCode}' delete from centermonitor_t_monitoring_data_water_quality where device_code = '${deviceCode}' delete from centermonitor_t_monitoring_data_insect_pests where device_number = '${deviceCode}' delete from centermonitor_t_monitoring_data_water_pressure where IMEI = '${deviceCode}' delete from centermonitor_t_monitoring_data_water_velocity where ST = '${deviceCode}' insert into centermonitor_t_monitoring_data_water_velocity `id`, `ST`, `FUN`, `TT`, `VER`, `TM`, `MARK`, `SERIAL`, `TYPE`, `DTEMP`, `BAT`, `SIGNAL`, `VT`, `Q1`, `Q2`, `V1`, `Z1`, `Z`, `Q`, `CQ1`, #{id}, #{ST}, #{FUN}, #{TT}, #{VER}, #{TM}, #{MARK}, #{SERIAL}, #{TYPE}, #{DTEMP}, #{BAT}, #{SIGNAL}, #{VT}, #{Q1}, #{Q2}, #{V1}, #{Z1}, #{Z}, #{Q}, #{CQ1}, insert into centermonitor_t_monitoring_data_soil_moisture `id`, `device_code`, `create_time`, `temperature`, `humidity`, `ph`, `conductivity`, `nitrogen`, `phosphorus`, `potassium`, `latitude`, `longitude`, `signal_strength`, `error_code`, `version`, #{id}, #{deviceCode}, #{createTime}, #{temperature}, #{humidity}, #{ph}, #{conductivity}, #{nitrogen}, #{phosphorus}, #{potassium}, #{latitude}, #{longitude}, #{signalStrength}, #{errorCode}, #{version}, insert into centermonitor_t_monitoring_data_water_pressure `id`, `IMEI`, `create_time`, `threshold_low_enable`, `threshold_high_enable`, `signal_power`, `hydraulic_value`, `hydraulic_threshold_min`, `hydraulic_threshold_max`, `heartbeat_time`, `battery_voltage`, `battery_value`, #{id}, #{IMEI}, #{createTime}, #{thresholdLowEnable}, #{thresholdHighEnable}, #{signalPower}, #{hydraulicValue}, #{hydraulicThresholdMin}, #{hydraulicThresholdMax}, #{heartbeatTime}, #{batteryVoltage}, #{batteryValue}, insert into centermonitor_t_monitoring_data_atmosphere `id`, `device_code`, `create_time`, `fine_particle`, `suction_particle`, `sulfur_dioxide`, `nitrogen_dioxide`, `ozone`, `carbon_monoxide`, `temperature`, `humidity`, `atmos`, `illuminance`, `latitude`, `longitude`, `signal_strength`, `error_code`, `version`, #{id}, #{deviceCode}, #{createTime}, #{fineParticle}, #{suctionParticle}, #{sulfurDioxide}, #{nitrogenDioxide}, #{ozone}, #{carbonMonoxide}, #{temperature}, #{humidity}, #{atmos}, #{illuminance}, #{latitude}, #{longitude}, #{signalStrength}, #{errorCode}, #{version}, insert into centermonitor_t_monitoring_data_water_quality `id`, `device_code`, `create_time`, `water_ph`, `water_temperature`, `water_quality_suspension`, `water_temperature_two`, `conductivity`, `ammonia_nitrogen`, `cod`, `latitude`, `longitude`, `signal_strength`, `error_code`, `version`, #{id}, #{deviceCode}, #{createTime}, #{waterPh}, #{waterTemperature}, #{waterQualitySuspension}, #{waterTemperatureTwo}, #{conductivity}, #{ammoniaNitrogen}, #{cod}, #{latitude}, #{longitude}, #{signalStrength}, #{errorCode}, #{version}, insert into centermonitor_t_monitoring_data_insect_pests `id`, `device_code`, `create_time`, `download_url`, `download_url_compress`, `tagging_img_url`, `tagging_img_url_compress`, `device_number`, `new_time`, `results`, `new_count`, `type_count`, `old_count`, `old_time`, `old_results`, `old_type_count`, `old_download_url`, `old_tagging_img_url`, `old_download_url_compress`, `old_tagging_img_url_compress`, #{id}, #{deviceCode}, #{createTime}, #{downloadUrl}, #{downloadUrlCompress}, #{taggingImgUrl}, #{taggingImgUrlCompress}, #{deviceNumber}, #{newTime}, #{results}, #{newCount}, #{typeCount}, #{oldCount}, #{oldTime}, #{oldResults}, #{oldTypeCount}, #{oldDownloadUrl}, #{oldTaggingImgUrl}, #{oldDownloadUrlCompress}, #{oldTaggingImgUrlCompress}, update centermonitor_t_monitoring_device working_status = #{workingStatus}, where id = #{id} update centermonitor_t_monitoring_device working_status = #{workingStatus}, where device_code = #{deviceCode}