select order_bind_id, safe_flag, sale_order_id, sale_order_code, product_id, product_code, product_name, purchase_order_id, po_no, material_id, material_code, material_name, bind_amount, barcode_amount,remark, create_by, create_time, update_by, update_time from mes_order_bind insert into mes_order_bind safe_flag, sale_order_id, sale_order_code, product_id, product_code, product_name, purchase_order_id, po_no, material_id, material_code, material_name, bind_amount, remark, create_by, create_time, update_by, update_time, #{safeFlag}, #{saleOrderId}, #{saleOrderCode}, #{productId}, #{productCode}, #{productName}, #{purchaseOrderId}, #{poNo}, #{materialId}, #{materialCode}, #{materialName}, #{bindAmount}, #{remark}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update mes_order_bind safe_flag = #{safeFlag}, sale_order_id = #{saleOrderId}, sale_order_code = #{saleOrderCode}, product_id = #{productId}, product_code = #{productCode}, product_name = #{productName}, purchase_order_id = #{purchaseOrderId}, po_no = #{poNo}, material_id = #{materialId}, material_code = #{materialCode}, material_name = #{materialName}, bind_amount = #{bindAmount}, barcode_amount = #{barcodeAmount}, remark = #{remark}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where order_bind_id = #{orderBindId} delete from mes_order_bind where order_bind_id = #{orderBindId} delete from mes_order_bind where order_bind_id in #{orderBindId}