select id, flow_name,flow_type, sku_type, sku_type_flag, qty, qty_flag, weight, weight_flag, supplier, supplier_flag, location_from,location_from_flag, location_from_device, location_to,location_to_flag, location_to_device, create_by, create_time, update_by, update_time, remark,location_from_strategy_flag ,location_to_strategy_flag,rel_flow,root_flow from flow_config_header insert into flow_config_header flow_name, flow_type, sku_type, sku_type_flag, qty, qty_range, qty_flag, weight, weight_range, weight_flag, supplier, supplier_range, supplier_flag, location_from, location_from_flag, location_from_device, location_from_strategy_flag, location_to, location_to_flag, location_to_device, location_to_strategy_flag, create_by, create_time, update_by, update_time, remark, rel_flow, root_flow, #{flowName}, #{flowType}, #{skuType}, #{skuTypeFlag}, #{qty}, #{qtyRange}, #{qtyFlag}, #{weight}, #{weightRange}, #{weightFlag}, #{supplier}, #{supplierRange}, #{supplierFlag}, #{locationFrom}, #{locationFromFlag}, #{locationFromDevice}, #{locationFromStrategyFlag}, #{locationTo}, #{locationToFlag}, #{locationToDevice}, #{locationToStrategyFlag}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark}, #{relFlow}, #{rootFlow}, update flow_config_header flow_name = #{flowName}, flow_type = #{flowType}, sku_type = #{skuType}, sku_type_flag = #{skuTypeFlag}, qty = #{qty}, qty_flag = #{qtyFlag}, weight = #{weight}, weight_flag = #{weightFlag}, supplier = #{supplier}, supplier_flag = #{supplierFlag}, location_from = #{locationFrom}, location_from_flag = #{locationFromFlag}, location_from_device = #{locationFromDevice}, location_from_strategy_flag = #{locationFromStrategyFlag}, location_to = #{locationTo}, location_to_flag = #{locationToFlag}, location_to_device = #{locationToDevice}, location_to_strategy_flag = #{locationToStrategyFlag}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, rel_flow = #{relFlow}, root_flow = #{rootFlow}, where id = #{id} delete from flow_config_header where id = #{id} delete from flow_config_header where id in #{id} delete from flow_config_details where header_id in #{headerId} delete from flow_config_details where header_id = #{headerId} insert into flow_config_details( id, header_id, lotatt_id, lotatt_flag, create_by, create_time, update_by, update_time, remark, default_value) values ( #{item.id}, #{item.headerId}, #{item.lotattId}, #{item.lotattFlag}, #{item.createBy}, #{item.createTime}, #{item.updateBy}, #{item.updateTime}, #{item.remark}, #{item.defaultValue})