2024-06-14 15:34:50 +08:00

45 lines
1.2 KiB
PHP

<?php
namespace app\common\model\financial_transfers;
use app\common\model\auth\Admin;
use app\common\model\BaseModel;
use app\common\model\system_store\SystemStore;
use app\common\model\system_store\SystemStoreStaff;
use think\model\concern\SoftDelete;
/**
* 财务转账提现表模型
* Class FinancaialTransfers
* @package app\common\model\order
*/
class FinancialTransfers extends BaseModel
{
use SoftDelete;
protected $name = 'financial_transfers';
protected $deleteTime = 'delete_time';
public function store()
{
return $this->hasOne(SystemStore::class, 'id','store_id')
->bind(['store_name'=>'name', 'store_phone'=>'phone','store_detailed_address'=>'detailed_address','store_simple_address'=>'address','store_bank'=>'bank','store_bank_code'=>'bank_code','store_bank_address'=>'bank_address','store_realName'=>'realname']);
}
public function staff()
{
return $this->hasOne(SystemStoreStaff::class, 'id', 'store_staff_id')->bind(['staff_name']);
}
public function admin()
{
return $this->hasOne(Admin::class, 'id','admin_id')
->bind(['admin_name'=>'name']);
}
}