23 lines
459 B
PHP
23 lines
459 B
PHP
<?php
|
|
|
|
|
|
|
|
namespace app\common\dao\store\shipping;
|
|
|
|
use app\common\dao\BaseDao;
|
|
use app\common\model\store\shipping\City as model;
|
|
|
|
class CityDao extends BaseDao
|
|
{
|
|
protected function getModel(): string
|
|
{
|
|
return model::class;
|
|
}
|
|
|
|
public function getAll(array $where)
|
|
{
|
|
return ($this->getModel()::getDB())->where($where)
|
|
->order('city_id ASC')->field('city_id,name,merger_name,parent_id,level')->select();
|
|
}
|
|
}
|