<?php

namespace App\Models\Business;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Support\Facades\DB;

class Goods extends Model
{

    /**
     * 根据goo_id获取数据
     *
     * @param $id
     * @param $data
     * @return int
     *
     * @author huangyongqi
     *
     * @since 2023-10-24
     */
    public static function getDataByGoodIds($goodIds)
    {
        return DB::table("goods")->whereIn('goo_id', $goodIds)->get()->all();
    }
}
