lqmac 6 months ago
parent 024449027b
commit 2a219875f3
  1. 4
      app/common/model/Goods.php
  2. 5
      app/store/controller/Goods.php
  3. 4
      config/module.php

@ -504,8 +504,8 @@ class Goods extends BaseModel
$filter[] = ['spec_type', '=', $params['spec_type']]; $filter[] = ['spec_type', '=', $params['spec_type']];
} }
//gj //gj
if (isset($param['merchantId']) && $param['merchantId']) { if (isset($param['merchant_id']) && $param['merchant_id']) {
$filter[] = ['goods.merchant_id', '=', $param['merchantId']]; $filter[] = ['goods.merchant_id', '=', $param['merchant_id']];
} }
//是否店内 //是否店内
//if (isset($param['is_in_store']) && $param['is_in_store'] !== '') { //if (isset($param['is_in_store']) && $param['is_in_store'] !== '') {

@ -37,7 +37,10 @@ class Goods extends Controller
$model = new GoodsModel; $model = new GoodsModel;
$params = $this->request->param(); $params = $this->request->param();
//$params['channel'] = 'zy'; //$params['channel'] = 'zy';
$params['merchantId'] = $this->merchantId; if (!isset($params['merchant_id'])) {
$params['merchant_id'] = $this->merchantId;
}
$list = $model->getList($params, (int)$this->request->param('pageSize', 15)); $list = $model->getList($params, (int)$this->request->param('pageSize', 15));
if ($list->isEmpty()) { if ($list->isEmpty()) {
return $this->renderSuccess(compact('list')); return $this->renderSuccess(compact('list'));

@ -26,12 +26,12 @@ return [
], ],
] ]
], ],
'merchant' => [ '' => [
'name' => '商户管理', 'name' => '商户管理',
'required' => true, 'required' => true,
'children' => [ 'children' => [
'merchant' => ['name' => '商户管理', 'enable' => true], 'merchant' => ['name' => '商户管理', 'enable' => true],
'manage' => ['name' => '商户列表', 'enable' => true], 'merchant-manage' => ['name' => '商户列表', 'enable' => true],
] ]
], ],
'goods' => [ 'goods' => [

Loading…
Cancel
Save