select outsourceOrderNo, batchNumber, appointNo, appointName, createDate, sendDate, processNo, processName, linkman, faxNumber, address, phoneNum, endFlag, remark, sendStockNo, sendStockName, deliveryStockNo, deliveryStockName, carrierCompany, confirmFlag, confirmMan, confirmDate, spare1, spare2, spare3, spare4, spare5, spare6 from outsource_order_head insert into outsource_order_head outsourceOrderNo, batchNumber, appointNo, appointName, createDate, sendDate, processNo, processName, linkman, faxNumber, address, phoneNum, endFlag, remark, sendStockNo, sendStockName, deliveryStockNo, deliveryStockName, carrierCompany, confirmFlag, confirmMan, confirmDate, spare1, spare2, spare3, spare4, spare5, spare6, #{outsourceOrderNo}, #{batchNumber}, #{appointNo}, #{appointName}, #{createDate}, #{sendDate}, #{processNo}, #{processName}, #{linkman}, #{faxNumber}, #{address}, #{phoneNum}, #{endFlag}, #{remark}, #{sendStockNo}, #{sendStockName}, #{deliveryStockNo}, #{deliveryStockName}, #{carrierCompany}, #{confirmFlag}, #{confirmMan}, #{confirmDate}, #{spare1}, #{spare2}, #{spare3}, #{spare4}, #{spare5}, #{spare6}, update outsource_order_head batchNumber = #{batchNumber}, appointNo = #{appointNo}, appointName = #{appointName}, createDate = #{createDate}, sendDate = #{sendDate}, processNo = #{processNo}, processName = #{processName}, linkman = #{linkman}, faxNumber = #{faxNumber}, address = #{address}, phoneNum = #{phoneNum}, endFlag = #{endFlag}, remark = #{remark}, sendStockNo = #{sendStockNo}, sendStockName = #{sendStockName}, deliveryStockNo = #{deliveryStockNo}, deliveryStockName = #{deliveryStockName}, carrierCompany = #{carrierCompany}, confirmFlag = #{confirmFlag}, confirmMan = #{confirmMan}, confirmDate = #{confirmDate}, spare1 = #{spare1}, spare2 = #{spare2}, spare3 = #{spare3}, spare4 = #{spare4}, spare5 = #{spare5}, spare6 = #{spare6}, where outsourceOrderNo = #{outsourceOrderNo} delete from outsource_order_head where outsourceOrderNo = #{outsourceOrderNo} delete from outsource_order_head where outsourceOrderNo in #{outsourceOrderNo}