Order.php 784 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace app\store\controller\shop;
  3. use app\store\controller\Controller;
  4. use app\store\model\store\Shop as ShopModel;
  5. use app\store\model\store\shop\Order as OrderModel;
  6. /**
  7. * 订单核销记录
  8. * Class Order
  9. * @package app\store\controller\shop
  10. */
  11. class Order extends Controller
  12. {
  13. /**
  14. * 订单核销记录列表
  15. * @param int $shop_id
  16. * @param string $search
  17. * @return mixed
  18. * @throws \think\exception\DbException
  19. */
  20. public function index($shop_id = 0, $search = '')
  21. {
  22. // 核销记录列表
  23. $model = new OrderModel;
  24. $list = $model->getList($shop_id, $search);
  25. // 门店列表
  26. $shopList = ShopModel::getAllList();
  27. return $this->fetch('index', compact('list', 'shopList'));
  28. }
  29. }