This commit is contained in:
chenbo 2023-09-11 13:57:21 +08:00
parent 1fbcb7cbcf
commit dd4875df9c
2 changed files with 2 additions and 1 deletions

View File

@ -45,6 +45,7 @@ class WithdrawLists extends BaseAdminDataLists implements ListsSearchInterface
public function lists(): array
{
$lists = Withdraw::where($this->searchWhere)
->with('user')
->where($this->queryWhere())
->order('id', 'desc')
->limit($this->limitOffset, $this->limitLength)

View File

@ -14,7 +14,7 @@ class Withdraw extends Model
public function user()
{
return $this->belongsTo(User::class, 'user_id', 'id')->bind(['account', 'nickname', 'avatar']);
return $this->belongsTo(User::class, 'user_id', 'id')->bind(['account', 'nickname', 'avatar', 'company_id']);
}
}