根据id获取某一类的最大最小值

            ->selectRaw('max(marking_price) as maxPrice, min(marking_price) as minPrice, product_id')
            ->groupBy('product_id')
原文地址:https://www.cnblogs.com/cjjjj/p/10391219.html