<?php

namespace App\Models\Business;

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

class WarehouseGoods extends Model
{

    /**
     * 根据wago_ware_id wago_goo_id获取数据
     *
     * @param $id
     * @param $data
     * @return int
     *
     * @author huangyongqi
     *
     * @since 2023-10-24
     */
    public static function getDataByWareIdGoodId($wareId, $gooId)
    {
        return DB::table("warehouse_goods")->where('wago_ware_id', $wareId)->where('wago_goo_id', $gooId)->first();
    }
}
