select device_id, device_name, product_id, product_name, user_id, user_name, tenant_id, tenant_name, serial_number, firmware_version, status, rssi,is_shadow ,is_custom_location,things_model_value,network_address, network_ip, longitude, latitude, active_time, create_time, update_time, img_url,remark from iot_device select device_id, device_name, product_id, product_name, user_id, user_name, tenant_id, tenant_name, serial_number, firmware_version, status,rssi,is_shadow ,is_custom_location,things_model_value, active_time,img_url from iot_device select device_id, device_name,product_id, serial_number, status,is_shadow ,is_custom_location,things_model_value, active_time from iot_device update iot_device set things_model_value=#{stringValue} where device_id = #{deviceId} insert into iot_device device_name, product_id, product_name, user_id, user_name, tenant_id, tenant_name, serial_number, firmware_version, status, rssi, is_shadow, is_custom_location, things_model_value, network_address, network_ip, longitude, latitude, active_time, del_flag, create_by, create_time, update_by, update_time, remark, img_url, #{deviceName}, #{productId}, #{productName}, #{userId}, #{userName}, #{tenantId}, #{tenantName}, #{serialNumber}, #{firmwareVersion}, #{status}, #{rssi}, #{isShadow}, #{isCustomLocation}, #{thingsModelValue}, #{networkAddress}, #{networkIp}, #{longitude}, #{latitude}, #{activeTime}, #{delFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{imgUrl}, update iot_device device_name = #{deviceName}, product_id = #{productId}, product_name = #{productName}, user_id = #{userId}, user_name = #{userName}, tenant_id = #{tenantId}, tenant_name = #{tenantName}, serial_number = #{serialNumber}, firmware_version = #{firmwareVersion}, status = #{status}, rssi = #{rssi}, is_shadow = #{isShadow}, is_custom_location = #{isCustomLocation}, things_model_value = #{thingsModelValue}, network_address = #{networkAddress}, network_ip = #{networkIp}, longitude = #{longitude}, latitude = #{latitude}, active_time = #{activeTime}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, img_url = #{imgUrl}, where device_id = #{deviceId} update iot_device status = #{status}, network_address = #{networkAddress}, network_ip = #{networkIp}, longitude = #{longitude}, latitude = #{latitude}, active_time = #{activeTime}, where serial_number = #{serialNumber} -- 设备状态(1-未激活,2-禁用,3-在线,4-离线) update iot_device set status=4 where serial_number = #{serialNumber} and status = 3 update iot_device device_name = #{deviceName}, product_id = #{productId}, product_name = #{productName}, user_id = #{userId}, user_name = #{userName}, tenant_id = #{tenantId}, tenant_name = #{tenantName}, serial_number = #{serialNumber}, firmware_version = #{firmwareVersion}, status = #{status}, rssi = #{rssi}, is_shadow = #{isShadow}, is_custom_location = #{isCustomLocation}, things_model_value = #{thingsModelValue}, network_address = #{networkAddress}, network_ip = #{networkIp}, longitude = #{longitude}, latitude = #{latitude}, active_time = #{activeTime}, del_flag = #{delFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, img_url = #{imgUrl}, where serial_number = #{serialNumber} delete from iot_device where device_id = #{deviceId} delete from iot_device where device_id in #{deviceId} delete from iot_device_group where device_id in #{deviceId}