update t_flower set stock = stock + #{num} where id = #{id} update t_flower set real_sales = ifnull(real_sales, 0) + #{num} where id = #{id} update t_flower f, t_flower_category fc set f.unit = fc.unit, f.color = fc.color where f.category = fc.id and fc.id = #{category}