更新客户管理
This commit is contained in:
parent
e4c18b2b93
commit
2ce0ff589b
@ -55,6 +55,7 @@ class CustomLists extends BaseAdminDataLists implements ListsSearchInterface
|
|||||||
public function lists(): array
|
public function lists(): array
|
||||||
{
|
{
|
||||||
return Custom::where($this->searchWhere)
|
return Custom::where($this->searchWhere)
|
||||||
|
->with('province')
|
||||||
->field(['*'])
|
->field(['*'])
|
||||||
->limit($this->limitOffset, $this->limitLength)
|
->limit($this->limitOffset, $this->limitLength)
|
||||||
->order(['id' => 'desc'])
|
->order(['id' => 'desc'])
|
||||||
|
@ -32,8 +32,8 @@ class Custom extends BaseModel
|
|||||||
protected $deleteTime = 'delete_time';
|
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');
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user