select id, workshop_code, line_code, processes_code, product_code, operation_steps, tech_requirement, operation_type, step_sort, param_code, material_code, formula_code, picture, remarks, create_user, create_time, update_user, update_time, spare_field_1, spare_field_2, spare_field_3, spare_field_4, collect_data, results from bs_formula_child_info
insert into bs_formula_child_info
workshop_code,
line_code,
processes_code,
product_code,
operation_steps,
tech_requirement,
operation_type,
step_sort,
param_code,
material_code,
formula_code,
picture,
remarks,
create_user,
create_time,
update_user,
update_time,
spare_field_1,
spare_field_2,
spare_field_3,
spare_field_4,
collect_data,
results,
#{workshopCode},
#{lineCode},
#{processesCode},
#{productCode},
#{operationSteps},
#{techRequirement},
#{operationType},
#{stepSort},
#{paramCode},
#{materialCode},
#{formulaCode},
#{picture},
#{remarks},
#{createUser},
#{createTime},
#{updateUser},
#{updateTime},
#{spareField1},
#{spareField2},
#{spareField3},
#{spareField4},
collect_data,
results,
update bs_formula_child_info
workshop_code = #{workshopCode},
line_code = #{lineCode},
processes_code = #{processesCode},
product_code = #{productCode},
operation_steps = #{operationSteps},
tech_requirement = #{techRequirement},
operation_type = #{operationType},
step_sort = #{stepSort},
param_code = #{paramCode},
material_code = #{materialCode},
formula_code = #{formulaCode},
picture = #{picture},
remarks = #{remarks},
create_user = #{createUser},
create_time = #{createTime},
update_user = #{updateUser},
update_time = #{updateTime},
spare_field_1 = #{spareField1},
spare_field_2 = #{spareField2},
spare_field_3 = #{spareField3},
spare_field_4 = #{spareField4},
collect_data = #{collectData},
results = #{results},
where id = #{id}
delete from bs_formula_child_info where id = #{id}
delete from bs_formula_child_info where id in
#{id}
UPDATE bs_formula_child_info
SET results = ''
WHERE
product_code = #{productCode}
AND processes_code = #{processesCode};