select id, product_id, brand, total_mass, curb_weight, dimension_length, dimension_width, dimension_height,
wheel_base, max_trailer_mass, fifth_wheel_max_load, engine_model, engine_manufacturer, kingpin_spec,
fifth_wheel_ground_height, turning_radius_before, matched_semi_trailer_radius, rear_turning_radius,
create_by, create_time, update_by, update_time
from product_tractionhead
insert into product_tractionhead (
product_id,
brand,
total_mass,
curb_weight,
dimension_length,
dimension_width,
dimension_height,
wheel_base,
max_trailer_mass,
fifth_wheel_max_load,
engine_model,
engine_manufacturer,
kingpin_spec,
fifth_wheel_ground_height,
turning_radius_before,
matched_semi_trailer_radius,
rear_turning_radius,
create_by,
create_time
)values(
#{productId},
#{brand},
#{totalMass},
#{curbWeight},
#{dimensionLength},
#{dimensionWidth},
#{dimensionHeight},
#{wheelBase},
#{maxTrailerMass},
#{fifthWheelMaxLoad},
#{engineModel},
#{engineManufacturer},
#{kingpinSpec},
#{fifthWheelGroundHeight},
#{turningRadiusBefore},
#{matchedSemiTrailerRadius},
#{rearTurningRadius},
#{createBy},
sysdate()
)
update product_tractionhead
product_id = #{productId},
brand = #{brand},
total_mass = #{totalMass},
curb_weight = #{curbWeight},
dimension_length = #{dimensionLength},
dimension_width = #{dimensionWidth},
dimension_height = #{dimensionHeight},
wheel_base = #{wheelBase},
max_trailer_mass = #{maxTrailerMass},
fifth_wheel_max_load = #{fifthWheelMaxLoad},
engine_model = #{engineModel},
engine_manufacturer = #{engineManufacturer},
kingpin_spec = #{kingpinSpec},
fifth_wheel_ground_height = #{fifthWheelGroundHeight},
turning_radius_before = #{turningRadiusBefore},
matched_semi_trailer_radius = #{matchedSemiTrailerRadius},
rear_turning_radius = #{rearTurningRadius},
update_by = #{updateBy},
update_time = sysdate()
where id = #{id}
delete from product_tractionhead where product_id = #{productId}
delete from product_tractionhead where id in
#{id}