select id, registerDate, itemType, stockNo, stockName, itemCode, itemName, machineType, itemSpecification, unit, customerNo, customerName, batchNumber, adjustQty, adjustReel, remark, spare1, spare2, spare3, spare4, spare5, spare6 from stock_adjust insert into stock_adjust id, registerDate, itemType, stockNo, stockName, itemCode, itemName, machineType, itemSpecification, unit, customerNo, customerName, batchNumber, adjustQty, adjustReel, remark, spare1, spare2, spare3, spare4, spare5, spare6, #{id}, #{registerDate}, #{itemType}, #{stockNo}, #{stockName}, #{itemCode}, #{itemName}, #{machineType}, #{itemSpecification}, #{unit}, #{customerNo}, #{customerName}, #{batchNumber}, #{adjustQty}, #{adjustReel}, #{remark}, #{spare1}, #{spare2}, #{spare3}, #{spare4}, #{spare5}, #{spare6}, update stock_adjust registerDate = #{registerDate}, itemType = #{itemType}, stockNo = #{stockNo}, stockName = #{stockName}, itemCode = #{itemCode}, itemName = #{itemName}, machineType = #{machineType}, itemSpecification = #{itemSpecification}, unit = #{unit}, customerNo = #{customerNo}, customerName = #{customerName}, batchNumber = #{batchNumber}, adjustQty = #{adjustQty}, adjustReel = #{adjustReel}, remark = #{remark}, spare1 = #{spare1}, spare2 = #{spare2}, spare3 = #{spare3}, spare4 = #{spare4}, spare5 = #{spare5}, spare6 = #{spare6}, where id = #{id} delete from stock_adjust where id = #{id} delete from stock_adjust where id in #{id}