MerchantIntentionApplyRepository.php 908 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * @package merchant
  4. *
  5. * @author xaboy
  6. * @day 2020-04-16
  7. *
  8. *
  9. */
  10. namespace app\common\repositories\merchant\apply;
  11. use app\common\dao\merchant\apply\MerchantIntentionApplyDao;
  12. use app\common\repositories\BaseRepository;
  13. /**
  14. * Class MerchantIntentionApplyRepository
  15. * @package app\common\repositories\merchant\apply
  16. * @author php迷途小书童
  17. * @created 2021/1/30 17:42
  18. */
  19. class MerchantIntentionApplyRepository extends BaseRepository
  20. {
  21. /**
  22. * MerchantRepository constructor.
  23. * @param MerchantIntentionApplyDao $dao
  24. */
  25. public function __construct(MerchantIntentionApplyDao $dao)
  26. {
  27. $this->dao = $dao;
  28. }
  29. /**
  30. * 获取单条信息
  31. * @return array|\think\Model|null
  32. * @author php迷途小书童
  33. * @created 2021/1/16 10:45
  34. */
  35. public function getOne($where)
  36. {
  37. return ($this->dao->getWhere($where));
  38. }
  39. }