laravel pluck的使用

        $productItem = StandardProductItemModel::query()
            ->whereIn('sku_id', $skuIdArr)
            ->where('status', '>', '-1')
            ->pluck('product_item_id')->toArray();

 

posted @ 2020-03-03 15:05  泥土里的绽放  阅读(3876)  评论(0)    收藏  举报