这题用row_number() over (partition by proid_id order by quantity)做更容易,你给出的这种解法leetcode喜欢这么搞