update t_flower set stock = stock + #{num} where id = #{id} update t_flower set real_sales = ifnull(real_sales, 0) + #{num} where id = #{id}