fix getcities showing province
This commit is contained in:
parent
9dfcc7c0eb
commit
8767b823ca
@ -29,13 +29,8 @@ class AreaGeoModel extends BaseModel {
|
|||||||
return $rows;
|
return $rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCities($filter = []) {
|
public function getCities() {
|
||||||
$this->select('AreaGeoID, AreaName')->where('Parent IS NOT NULL', null, false);
|
$this->select('AreaGeoID, AreaName')->where('Parent > 0');
|
||||||
|
|
||||||
if (!empty($filter['AreaGeoID'])) {
|
|
||||||
$this->where('Parent', $filter['AreaGeoID']);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->findAll();
|
return $this->findAll();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user