select finish_product_id, customer_number, type_machine, finish_product_name, enterprise_code, enterprise_name, inventory_unit, version_number, finish_product_code, safety_stock, stock_unit_weight, gp_Item_selection, In_plant_code, whether_stop, creater_name, ordinal_name, original_number, customs_name, default_warehouse, material_category, production_category, finish_product_category, specification_model, customer_engineer, product_description, maximum_inventory, product_price, component_name, creater_time, ordinal_number, default_location, hs_number, kes_number, first_add_time, update_info_time from sys_finish_product
insert into sys_finish_product
customer_number,
type_machine,
finish_product_name,
enterprise_code,
enterprise_name,
inventory_unit,
version_number,
finish_product_code,
safety_stock,
stock_unit_weight,
gp_Item_selection,
In_plant_code,
whether_stop,
creater_name,
ordinal_name,
original_number,
customs_name,
default_warehouse,
material_category,
production_category,
finish_product_category,
specification_model,
customer_engineer,
product_description,
maximum_inventory,
product_price,
component_name,
creater_time,
ordinal_number,
default_location,
hs_number,
kes_number,
first_add_time,
#{customerNumber},
#{typeMachine},
#{finishProductName},
#{enterpriseCode},
#{enterpriseName},
#{inventoryUnit},
#{versionNumber},
#{finishProductCode},
#{safetyStock},
#{stockUnitWeight},
#{gpItemSelection},
#{inPlantCode},
#{whetherStop},
#{createrName},
#{ordinalName},
#{originalNumber},
#{customsName},
#{defaultWarehouse},
#{materialCategory},
#{productionCategory},
#{finishProductCategory},
#{specificationModel},
#{customerEngineer},
#{productDescription},
#{maximumInventory},
#{productPrice},
#{componentName},
#{createrTime},
#{ordinalNumber},
#{defaultLocation},
#{hsNumber},
#{kesNumber},
now(),
update sys_finish_product
customer_number = #{customerNumber},
type_machine = #{typeMachine},
finish_product_name = #{finishProductName},
enterprise_code = #{enterpriseCode},
enterprise_name = #{enterpriseName},
inventory_unit = #{inventoryUnit},
version_number = #{versionNumber},
finish_product_code = #{finishProductCode},
safety_stock = #{safetyStock},
stock_unit_weight = #{stockUnitWeight},
gp_Item_selection = #{gpItemSelection},
In_plant_code = #{inPlantCode},
whether_stop = #{whetherStop},
creater_name = #{createrName},
ordinal_name = #{ordinalName},
original_number = #{originalNumber},
customs_name = #{customsName},
default_warehouse = #{defaultWarehouse},
material_category = #{materialCategory},
production_category = #{productionCategory},
finish_product_category = #{finishProductCategory},
specification_model = #{specificationModel},
customer_engineer = #{customerEngineer},
product_description = #{productDescription},
maximum_inventory = #{maximumInventory},
product_price = #{productPrice},
component_name = #{componentName},
creater_time = #{createrTime},
ordinal_number = #{ordinalNumber},
default_location = #{defaultLocation},
hs_number = #{hsNumber},
kes_number = #{kesNumber},
update_info_time = CONCAT_WS(',',NOW(),update_info_time),
where finish_product_id = #{finishProductId}
delete from sys_finish_product where finish_product_id = #{finishProductId}
delete from sys_finish_product where finish_product_id in
#{finishProductId}