CityAreaRepository.php 413 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace app\common\repositories\store;
  3. use app\common\dao\store\CityAreaDao;
  4. use app\common\repositories\BaseRepository;
  5. /**
  6. * @mixin CityAreaDao
  7. */
  8. class CityAreaRepository extends BaseRepository
  9. {
  10. public function __construct(CityAreaDao $dao)
  11. {
  12. $this->dao = $dao;
  13. }
  14. public function getChildren($pid)
  15. {
  16. return $this->search(['pid' => $pid])->select();
  17. }
  18. }