CityDao.php 459 B

12345678910111213141516171819202122
  1. <?php
  2. namespace app\common\dao\store\shipping;
  3. use app\common\dao\BaseDao;
  4. use app\common\model\store\shipping\City as model;
  5. class CityDao extends BaseDao
  6. {
  7. protected function getModel(): string
  8. {
  9. return model::class;
  10. }
  11. public function getAll(array $where)
  12. {
  13. return ($this->getModel()::getDB())->where($where)
  14. ->order('city_id ASC')->field('city_id,name,merger_name,parent_id,level')->select();
  15. }
  16. }