select bom_id, item_id, bom_item_id, bom_item_code, bom_item_name, bom_item_spec, unit_of_measure, unit_name, item_or_product, quantity, enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from md_product_bom
insert into md_product_bom
item_id,
bom_item_id,
bom_item_code,
bom_item_name,
bom_item_spec,
unit_of_measure,
unit_name,
item_or_product,
quantity,
enable_flag,
remark,
attr1,
attr2,
attr3,
attr4,
create_by,
create_time,
update_by,
update_time,
#{itemId},
#{bomItemId},
#{bomItemCode},
#{bomItemName},
#{bomItemSpec},
#{unitOfMeasure},
#{unitName},
#{itemOrProduct},
#{quantity},
#{enableFlag},
#{remark},
#{attr1},
#{attr2},
#{attr3},
#{attr4},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update md_product_bom
item_id = #{itemId},
bom_item_id = #{bomItemId},
bom_item_code = #{bomItemCode},
bom_item_name = #{bomItemName},
bom_item_spec = #{bomItemSpec},
unit_of_measure = #{unitOfMeasure},
unit_name = #{unitName}
item_or_product = #{itemOrProduct},
quantity = #{quantity},
enable_flag = #{enableFlag},
remark = #{remark},
attr1 = #{attr1},
attr2 = #{attr2},
attr3 = #{attr3},
attr4 = #{attr4},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
where bom_id = #{bomId}
delete from md_product_bom where bom_id = #{bomId}
delete from md_product_bom where bom_id in
#{bomId}