select warehousingRecord_no, customer_id, customer_name, warehousing_type, warehousingRecord_date, purchaseOrder_no, workOrder_no, domesticOrExport, warehouse_NO, warehouse_name, warehousing_amt, item_NO, item_name, itemTimes, specificationModel, machineType, unit, spell_1, spell_2, spell_3,salesReturnNo,outsourceNo,remark,surplusQty,cancelStockNo,depositPosition from warehousing_record insert into warehousing_record warehousingRecord_no, customer_id, customer_name, warehousing_type, warehousingRecord_date, purchaseOrder_no, workOrder_no, domesticOrExport, warehouse_NO, warehouse_name, warehousing_amt, item_NO, item_name, itemTimes, specificationModel, machineType, unit, spell_1, spell_2, spell_3, salesReturnNo, outsourceNo, remark, surplusQty, cancelStockNo, depositPosition, #{warehousingrecordNo}, #{customerId}, #{customerName}, #{warehousingType}, #{warehousingrecordDate}, #{purchaseorderNo}, #{workorderNo}, #{domesticOrExport}, #{warehouseNo}, #{warehouseName}, #{warehousingAmt}, #{itemNo}, #{itemName}, #{itemTimes}, #{specificationModel}, #{machineType}, #{unit}, #{spell1}, #{spell2}, #{spell3}, #{salesReturnNo}, #{outsourceNo}, #{remark}, #{surplusQty}, #{cancelStockNo}, #{depositPosition}, update warehousing_record customer_id = #{customerId}, customer_name = #{customerName}, warehousing_type = #{warehousingType}, warehousingRecord_date = #{warehousingrecordDate}, purchaseOrder_no = #{purchaseorderNo}, workOrder_no = #{workorderNo}, domesticOrExport = #{domesticOrExport}, warehouse_NO = #{warehouseNo}, warehouse_name = #{warehouseName}, warehousing_amt = #{warehousingAmt}, item_NO = #{itemNo}, item_name = #{itemName}, itemTimes = #{itemTimes}, specificationModel = #{specificationModel}, machineType = #{machineType}, unit = #{unit}, spell_1 = #{spell1}, spell_2 = #{spell2}, spell_3 = #{spell3}, salesReturnNo = #{salesReturnNo} outsourceNo = #{outsourceNo} remark = #{remark}, surplusQty = #{surplusQty}, cancelStockNo = #{cancelStockNo}, depositPosition = #{depositPosition}, where warehousingRecord_no = #{warehousingrecordNo} delete from warehousing_record where warehousingRecord_no = #{warehousingrecordNo} delete from warehousing_record where warehousingRecord_no in #{warehousingrecordNo} update warehousing_record set surplusQty = surplusQty-#{surplusQty} WHERE warehousingRecord_no=#{warehousingrecordNo}