quanwei
2025-12-31 48d31672b4d88900080093cd1632f9d2eb978d4d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
 
namespace app\supplier\controller\store;
 
use app\supplier\controller\Controller;
use app\supplier\model\store\Store as StoreModel;
use app\supplier\model\store\Coupon as CouponModel;
 
/**
 * 订单核销控制器
 */
class Coupon extends Controller
{
    /**
     * 订单核销记录列表
     */
    public function index($store_id = 0, $search = '')
    {
        $data = $this->postData();
        $data['shop_supplier_id'] = $this->getSupplierId();
        // 核销记录列表
        $model = new CouponModel;
        $list = $model->getList($store_id, $search, $data);
        // 门店列表
        $store_list = (new StoreModel)->getList([],$this->getSupplierId());
        return $this->renderSuccess('', compact('list', 'store_list'));
    }
}