select mode_parameter_id, mode_function_id, releated_parameter_id, parameter_type, parameter_name, parameter_identifier, data_type, data_definition, property_unit, property_step from hw_device_mode_parameter insert into hw_device_mode_parameter mode_function_id, releated_parameter_id, parameter_type, parameter_name, parameter_identifier, data_type, data_definition, property_unit, property_step, #{modeFunctionId}, #{releatedParameterId}, #{parameterType}, #{parameterName}, #{parameterIdentifier}, #{dataType}, #{dataDefinition}, #{propertyUnit}, #{propertyStep}, update hw_device_mode_parameter mode_function_id = #{modeFunctionId}, releated_parameter_id = #{releatedParameterId}, parameter_type = #{parameterType}, parameter_name = #{parameterName}, parameter_identifier = #{parameterIdentifier}, data_type = #{dataType}, data_definition = #{dataDefinition}, property_unit = #{propertyUnit}, property_step = #{propertyStep}, where mode_parameter_id = #{modeParameterId} delete from hw_device_mode_parameter where mode_parameter_id = #{modeParameterId} delete from hw_device_mode_parameter where mode_parameter_id in #{modeParameterId} insert into hw_device_mode_parameter( mode_function_id, parameter_type, parameter_name, parameter_identifier, data_type, data_definition, property_unit, property_step) values ( #{item.modeFunctionId}, #{item.parameterType}, #{item.parameterName}, #{item.parameterIdentifier}, #{item.dataType}, #{item.dataDefinition}, #{item.propertyUnit}, #{item.propertyStep})