This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/store/controller/shop/Order.php
2020-04-25 22:34:57 +08:00

33 lines
784 B
PHP

<?php
namespace app\store\controller\shop;
use app\store\controller\Controller;
use app\store\model\store\Shop as ShopModel;
use app\store\model\store\shop\Order as OrderModel;
/**
* 订单核销记录
* Class Order
* @package app\store\controller\shop
*/
class Order extends Controller
{
/**
* 订单核销记录列表
* @param int $shop_id
* @param string $search
* @return mixed
* @throws \think\exception\DbException
*/
public function index($shop_id = 0, $search = '')
{
// 核销记录列表
$model = new OrderModel;
$list = $model->getList($shop_id, $search);
// 门店列表
$shopList = ShopModel::getAllList();
return $this->fetch('index', compact('list', 'shopList'));
}
}