DELETE FROM t_flower WHERE id IN #{id} 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} UPDATE t_flower SET type_rank = #{item.typeRank} WHERE id = #{item.id} update t_flower set deleted = 0 WHERE id IN #{id} update t_flower set type_rank=null where category=#{category} and level=#{level}