select id, iot_device_id, group_id, product_id, stake_mark, direction, device_name, device_code, device_type, installation_Date, production_date, durable_years, installation_site, use_state, device_state, other_config, remark, create_time, update_time, facilities_type, device_ip, stake_mark_range, network_segment, device_img, child_type from dc_device update dc_device set device_state=#{deviceState} where id=#{id}