select order_no, order_line_no, customer_id, sku, line_status, qty_ordered, qty_ordered_each, qty_soft_allocated, qty_softallocated_each, qty_allocated, qty_allocated_each, qty_picked, qty_picked_each, qty_packed, qty_packed_each, qty_shipped, qty_shipped_each, uom, lotatt01, lotatt02, lotatt03, lotatt04, lotatt05, lotatt06, lotatt07, lotatt08, lotatt09, lotatt10, lotatt11, lotatt12, lotatt13, lotatt14, lotatt15, lotatt16, lotatt17, lotatt18, pack_id, pick_zone, location, lotnum, remark, create_time, create_by, update_time, update_by, net_weight, gross_weight, cubic, d_edi_01, d_edi_02, d_edi_03, d_edi_04, d_edi_05, d_edi_06, d_edi_07, d_edi_08, d_edi_09, d_edi_10, d_edi_11, d_edi_12, d_edi_13, d_edi_14, d_edi_15, d_edi_16, d_edi_17, d_edi_18, d_edi_19, d_edi_20, trace_id, soft_allocation_rule, allocation_rule, userdefine1, userdefine2, userdefine3, userdefine4, userdefine5 from wms_doc_order_details insert into wms_doc_order_details order_no, order_line_no, customer_id, sku, line_status, qty_ordered, qty_ordered_each, qty_soft_allocated, qty_softallocated_each, qty_allocated, qty_allocated_each, qty_picked, qty_picked_each, qty_packed, qty_packed_each, qty_shipped, qty_shipped_each, uom, lotatt01, lotatt02, lotatt03, lotatt04, lotatt05, lotatt06, lotatt07, lotatt08, lotatt09, lotatt10, lotatt11, lotatt12, lotatt13, lotatt14, lotatt15, lotatt16, lotatt17, lotatt18, pack_id, pick_zone, location, lotnum, remark, create_time, create_by, update_time, update_by, net_weight, gross_weight, cubic, d_edi_01, d_edi_02, d_edi_03, d_edi_04, d_edi_05, d_edi_06, d_edi_07, d_edi_08, d_edi_09, d_edi_10, d_edi_11, d_edi_12, d_edi_13, d_edi_14, d_edi_15, d_edi_16, d_edi_17, d_edi_18, d_edi_19, d_edi_20, trace_id, soft_allocation_rule, allocation_rule, userdefine1, userdefine2, userdefine3, userdefine4, userdefine5, #{orderNo}, #{orderLineNo}, #{customerId}, #{sku}, #{lineStatus}, #{qtyOrdered}, #{qtyOrderedEach}, #{qtySoftAllocated}, #{qtySoftallocatedEach}, #{qtyAllocated}, #{qtyAllocatedEach}, #{qtyPicked}, #{qtyPickedEach}, #{qtyPacked}, #{qtyPackedEach}, #{qtyShipped}, #{qtyShippedEach}, #{uom}, #{lotatt01}, #{lotatt02}, #{lotatt03}, #{lotatt04}, #{lotatt05}, #{lotatt06}, #{lotatt07}, #{lotatt08}, #{lotatt09}, #{lotatt10}, #{lotatt11}, #{lotatt12}, #{lotatt13}, #{lotatt14}, #{lotatt15}, #{lotatt16}, #{lotatt17}, #{lotatt18}, #{packId}, #{pickZone}, #{location}, #{lotnum}, #{remark}, #{createTime}, #{createBy}, #{updateTime}, #{updateBy}, #{netWeight}, #{grossWeight}, #{cubic}, #{dEdi01}, #{dEdi02}, #{dEdi03}, #{dEdi04}, #{dEdi05}, #{dEdi06}, #{dEdi07}, #{dEdi08}, #{dEdi09}, #{dEdi10}, #{dEdi11}, #{dEdi12}, #{dEdi13}, #{dEdi14}, #{dEdi15}, #{dEdi16}, #{dEdi17}, #{dEdi18}, #{dEdi19}, #{dEdi20}, #{traceId}, #{softAllocationRule}, #{allocationRule}, #{userdefine1}, #{userdefine2}, #{userdefine3}, #{userdefine4}, #{userdefine5}, update wms_doc_order_details customer_id = #{customerId}, sku = #{sku}, line_status = #{lineStatus}, qty_ordered = #{qtyOrdered}, qty_ordered_each = #{qtyOrderedEach}, qty_soft_allocated = #{qtySoftAllocated}, qty_softallocated_each = #{qtySoftallocatedEach}, qty_allocated = #{qtyAllocated}, qty_allocated_each = #{qtyAllocatedEach}, qty_picked = #{qtyPicked}, qty_picked_each = #{qtyPickedEach}, qty_packed = #{qtyPacked}, qty_packed_each = #{qtyPackedEach}, qty_shipped = #{qtyShipped}, qty_shipped_each = #{qtyShippedEach}, uom = #{uom}, lotatt01 = #{lotatt01}, lotatt02 = #{lotatt02}, lotatt03 = #{lotatt03}, lotatt04 = #{lotatt04}, lotatt05 = #{lotatt05}, lotatt06 = #{lotatt06}, lotatt07 = #{lotatt07}, lotatt08 = #{lotatt08}, lotatt09 = #{lotatt09}, lotatt10 = #{lotatt10}, lotatt11 = #{lotatt11}, lotatt12 = #{lotatt12}, lotatt13 = #{lotatt13}, lotatt14 = #{lotatt14}, lotatt15 = #{lotatt15}, lotatt16 = #{lotatt16}, lotatt17 = #{lotatt17}, lotatt18 = #{lotatt18}, pack_id = #{packId}, pick_zone = #{pickZone}, location = #{location}, lotnum = #{lotnum}, remark = #{remark}, create_time = #{createTime}, create_by = #{createBy}, update_time = #{updateTime}, update_by = #{updateBy}, net_weight = #{netWeight}, gross_weight = #{grossWeight}, cubic = #{cubic}, d_edi_01 = #{dEdi01}, d_edi_02 = #{dEdi02}, d_edi_03 = #{dEdi03}, d_edi_04 = #{dEdi04}, d_edi_05 = #{dEdi05}, d_edi_06 = #{dEdi06}, d_edi_07 = #{dEdi07}, d_edi_08 = #{dEdi08}, d_edi_09 = #{dEdi09}, d_edi_10 = #{dEdi10}, d_edi_11 = #{dEdi11}, d_edi_12 = #{dEdi12}, d_edi_13 = #{dEdi13}, d_edi_14 = #{dEdi14}, d_edi_15 = #{dEdi15}, d_edi_16 = #{dEdi16}, d_edi_17 = #{dEdi17}, d_edi_18 = #{dEdi18}, d_edi_19 = #{dEdi19}, d_edi_20 = #{dEdi20}, trace_id = #{traceId}, soft_allocation_rule = #{softAllocationRule}, allocation_rule = #{allocationRule}, userdefine1 = #{userdefine1}, userdefine2 = #{userdefine2}, userdefine3 = #{userdefine3}, userdefine4 = #{userdefine4}, userdefine5 = #{userdefine5}, where order_no = #{orderNo} and order_line_no = #{orderLineNo} delete from wms_doc_order_details where order_no = #{orderNo} delete from wms_doc_order_details where order_no in #{orderNo} update wms_doc_order_details set qty_allocated = qty_allocated + #{qty},qty_allocated_each = qty_allocated_each + #{qty},line_status = #{status} where order_no = #{orderNo} and order_line_no = #{orderLoneNo} delete from wms_doc_order_details where order_no = #{orderNo} and order_line_no = #{orderLineNo}