$productItem = StandardProductItemModel::query() ->whereIn('sku_id', $skuIdArr) ->where('status', '>', '-1') ->pluck('product_item_id')->toArray(); 来源:https://www.cnblogs.com/cjjjj/p/12402421.html 标签 pluck