Order.php 936 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. *
  4. * @copyright ©2020 点小铺
  5. * @author hanj
  6. * @link: https://dyuit.com
  7. * Created by VSCode
  8. */
  9. namespace app\store\controller\shop;
  10. use app\store\controller\Controller;
  11. use app\store\model\store\Shop as ShopModel;
  12. use app\store\model\store\shop\Order as OrderModel;
  13. /**
  14. * 订单核销记录
  15. * Class Order
  16. * @package app\store\controller\shop
  17. */
  18. class Order extends Controller
  19. {
  20. /**
  21. * 订单核销记录列表
  22. * @param int $shop_id
  23. * @param string $search
  24. * @return mixed
  25. * @throws \think\exception\DbException
  26. */
  27. public function index($shop_id = 0, $search = '')
  28. {
  29. // 核销记录列表
  30. $model = new OrderModel;
  31. $list = $model->getList($shop_id, $search);
  32. // 门店列表
  33. $shopList = (new ShopModel)->getList();
  34. return $this->fetch('index', compact('list', 'shopList'));
  35. }
  36. }