|
@@ -3,7 +3,7 @@
|
|
namespace app\admin\controller;
|
|
namespace app\admin\controller;
|
|
|
|
|
|
use app\common\controller\Backend;
|
|
use app\common\controller\Backend;
|
|
-
|
|
|
|
|
|
+use think\Db;
|
|
/**
|
|
/**
|
|
* 储值卡赠送卡券管理
|
|
* 储值卡赠送卡券管理
|
|
*
|
|
*
|
|
@@ -43,6 +43,10 @@ class RechargeGift extends Backend
|
|
$this->relationSearch = true;
|
|
$this->relationSearch = true;
|
|
//设置过滤方法
|
|
//设置过滤方法
|
|
$this->request->filter(['strip_tags', 'trim']);
|
|
$this->request->filter(['strip_tags', 'trim']);
|
|
|
|
+
|
|
|
|
+ $config_id = input('config_id',0);
|
|
|
|
+ $this->assignconfig('config_id',$config_id);
|
|
|
|
+
|
|
if ($this->request->isAjax()) {
|
|
if ($this->request->isAjax()) {
|
|
//如果发送的来源是Selectpage,则转发到Selectpage
|
|
//如果发送的来源是Selectpage,则转发到Selectpage
|
|
if ($this->request->request('keyField')) {
|
|
if ($this->request->request('keyField')) {
|
|
@@ -53,6 +57,7 @@ class RechargeGift extends Backend
|
|
$list = $this->model
|
|
$list = $this->model
|
|
->with(['coupons'])
|
|
->with(['coupons'])
|
|
->where($where)
|
|
->where($where)
|
|
|
|
+ ->where('rechargegift.config_id',$config_id)
|
|
->order($sort, $order)
|
|
->order($sort, $order)
|
|
->paginate($limit);
|
|
->paginate($limit);
|
|
|
|
|