SELECT
ffi.id,
ffi.model_3d_id,
m3.`name` model3dName,
ffi.mach_number,
ffi.flow_velocity_x,
ffi.flow_velocity_y,
ffi.flow_velocity_z,
ffi.flow_direction_x,
ffi.flow_direction_y,
ffi.flow_direction_z,
ffi.flow_temperature,
ffi.flow_pressure,
ffi.flow_density,
ffi.flight_altitude,
ffi.co2_mass_fraction,
ffi.co_mass_fraction,
ffi.h2o_mass_fraction,
ffi.fluent_grid_file,
ffi.fluent_grid_file_path,
ffi.fluent_cas_file,
ffi.fluent_cas_file_path,
ffi.fluent_dat_file,
ffi.fluent_dat_file_path,
ffi.exhaust_system_connotation_temperature,
ffi.exhaust_system_intrinsic_temperature,
ffi.exhaust_system_connotation_pressure,
ffi.exhaust_system_intrinsic_pressure,
ffi.exhaust_system_connotation_flow,
ffi.exhaust_system_intrinsic_flow,
ffi.remark,
ffi.create_by,
ffi.create_time,
ffi.update_by,
ffi.update_time
FROM
bz_flow_field_input_t ffi
LEFT JOIN bz_model_3d_t m3 ON ffi.model_3d_id = m3.id
insert into bz_flow_field_input_t
model_3d_id,
mach_number,
flow_direction_x,
flow_direction_y,
flow_direction_z,
flow_velocity_x,
flow_velocity_y,
flow_velocity_z,
flow_temperature,
flow_pressure,
flow_density,
flight_altitude,
co2_mass_fraction,
co_mass_fraction,
h2o_mass_fraction,
fluent_grid_file,
fluent_grid_file_path,
fluent_cas_file,
fluent_cas_file_path,
fluent_dat_file,
fluent_dat_file_path,
exhaust_system_connotation_temperature,
exhaust_system_intrinsic_temperature,
exhaust_system_connotation_pressure,
exhaust_system_intrinsic_pressure,
exhaust_system_connotation_flow,
exhaust_system_intrinsic_flow,
remark,
create_by,
create_time,
update_by,
update_time,
#{model3dId},
#{machNumber},
#{flowDirectionX},
#{flowDirectionY},
#{flowDirectionZ},
#{flowVelocityX},
#{flowVelocityY},
#{flowVelocityZ},
#{flowTemperature},
#{flowPressure},
#{flowDensity},
#{flightAltitude},
#{co2MassFraction},
#{coMassFraction},
#{h2oMassFraction},
#{fluentGridFile},
#{fluentGridFilePath},
#{fluentCasFile},
#{fluentCasFilePath},
#{fluentDatFile},
#{fluentDatFilePath},
#{exhaustSystemConnotationTemperature},
#{exhaustSystemIntrinsicTemperature},
#{exhaustSystemConnotationPressure},
#{exhaustSystemIntrinsicPressure},
#{exhaustSystemConnotationFlow},
#{exhaustSystemIntrinsicFlow},
#{remark},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update bz_flow_field_input_t
model_3d_id = #{model3dId},
mach_number = #{machNumber},
flow_direction_x = #{flowDirectionX},
flow_direction_y = #{flowDirectionY},
flow_direction_z = #{flowDirectionZ},
flow_velocity_x = #{flowVelocityX},
flow_velocity_y = #{flowVelocityY},
flow_velocity_z = #{flowVelocityZ},
flow_temperature = #{flowTemperature},
flow_pressure =#{flowPressure},
flow_density =#{flowDensity},
flight_altitude =#{flightAltitude},
co2_mass_fraction = #{co2MassFraction},
co_mass_fraction = #{coMassFraction},
h2o_mass_fraction = #{h2oMassFraction},
fluent_grid_file = #{fluentGridFile},
fluent_grid_file_path = #{fluentGridFilePath},
fluent_cas_file = #{fluentCasFile},
fluent_cas_file_path = #{fluentCasFilePath},
fluent_dat_file = #{fluentDatFile},
fluent_dat_file_path = #{fluentDatFilePath},
exhaust_system_connotation_temperature = #{exhaustSystemConnotationTemperature},
exhaust_system_intrinsic_temperature= #{exhaustSystemIntrinsicTemperature},
exhaust_system_connotation_pressure= #{exhaustSystemConnotationPressure},
exhaust_system_intrinsic_pressure= #{exhaustSystemIntrinsicPressure},
exhaust_system_connotation_flow= #{exhaustSystemConnotationFlow},
exhaust_system_intrinsic_flow= #{exhaustSystemIntrinsicFlow},
remark= #{remark},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where id = #{id}
delete from bz_flow_field_input_t where id = #{id}
delete from bz_flow_field_input_t where id in
#{id}