liyaozhi
2025-10-28 1320688354fd168c51cf2e05f29a2253f4ed9c00
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
 
namespace app\common\model\supplier;
 
use app\common\model\BaseModel;
 
/**
 * 商家供应商提现账户模型
 */
class Account extends BaseModel
{
    protected $name = 'supplier_account';
    protected $pk = 'account_id';
 
    /**
     * 关联应用表
     */
    public function supplier()
    {
        return $this->belongsTo('app\\common\\model\\supplier\\Supplier', 'shop_supplier_id', 'shop_supplier_id');
    }
    /**
     * 详情
     */
    public static function detail($shop_supplier_id, $with = [])
    {
        return (new static())->with($with)->where('shop_supplier_id', '=', $shop_supplier_id)->findOrEmpty();
    }
 
}