CityDao.php 538 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * @package merchant
  4. * @Author: Qinii
  5. * @Date: 2020/5/6
  6. * @Time: 15:11
  7. */
  8. namespace app\common\dao\store\shipping;
  9. use app\common\dao\BaseDao;
  10. use app\common\model\store\shipping\City as model;
  11. class CityDao extends BaseDao
  12. {
  13. protected function getModel(): string
  14. {
  15. return model::class;
  16. }
  17. public function getAll(array $where)
  18. {
  19. return ($this->getModel()::getDB())->where($where)
  20. ->order('city_id ASC')->field('city_id,name,merger_name,parent_id,level')->select();
  21. }
  22. }