更新客户管理

This commit is contained in:
yaooo 2023-12-13 09:29:49 +08:00
parent e4c18b2b93
commit 2ce0ff589b
2 changed files with 3 additions and 2 deletions

View File

@ -55,6 +55,7 @@ class CustomLists extends BaseAdminDataLists implements ListsSearchInterface
public function lists(): array
{
return Custom::where($this->searchWhere)
->with('province')
->field(['*'])
->limit($this->limitOffset, $this->limitLength)
->order(['id' => 'desc'])

View File

@ -32,8 +32,8 @@ class Custom extends BaseModel
protected $deleteTime = 'delete_time';
public function provinceName()
public function province()
{
return $this->hasOne(GeoProvince::class, 'province_id','province');
return $this->hasOne(GeoProvince::class, 'province_code','province');
}
}