MerchantOfflineOrder.php 1012 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. namespace app\controller\admin\order;
  3. use app\common\repositories\merchant\order\OrderMerchantRepository;
  4. use crmeb\basic\BaseController;
  5. use think\App;
  6. class MerchantOfflineOrder extends BaseController
  7. {
  8. /**
  9. * @var OrderMerchantRepository
  10. */
  11. protected $repository;
  12. /**
  13. * @var int
  14. */
  15. protected $merId;
  16. /**
  17. * MerchantIntention constructor.
  18. * @param App $app
  19. * @param OrderMerchantRepository $repository
  20. */
  21. public function __construct(App $app, OrderMerchantRepository $repository)
  22. {
  23. parent::__construct($app);
  24. $this->repository = $repository;
  25. $this->merId = 0;
  26. }
  27. /**
  28. * @return mixed
  29. * 展示线下订单
  30. */
  31. public function lst()
  32. {
  33. [$page, $limit] = $this->getPage();
  34. $where = $this->request->params(['keyword', 'date', 'status', 'mer_id']);
  35. return app('json')->success($this->repository->getMerchantListAdmin($this->merId, $where, $page, $limit));
  36. }
  37. }