| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?php
- namespace app\controller\admin\order;
- use app\common\repositories\merchant\order\OrderMerchantRepository;
- use crmeb\basic\BaseController;
- use think\App;
- class MerchantOfflineOrder extends BaseController
- {
- /**
- * @var OrderMerchantRepository
- */
- protected $repository;
- /**
- * @var int
- */
- protected $merId;
- /**
- * MerchantIntention constructor.
- * @param App $app
- * @param OrderMerchantRepository $repository
- */
- public function __construct(App $app, OrderMerchantRepository $repository)
- {
- parent::__construct($app);
- $this->repository = $repository;
- $this->merId = 0;
- }
- /**
- * @return mixed
- * 展示线下订单
- */
- public function lst()
- {
- [$page, $limit] = $this->getPage();
- $where = $this->request->params(['keyword', 'date', 'status', 'mer_id']);
- return app('json')->success($this->repository->getMerchantListAdmin($this->merId, $where, $page, $limit));
- }
- }
|