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']];
}
//gj
if (isset($param['merchantId']) && $param['merchantId']) {
$filter[] = ['goods.merchant_id', '=', $param['merchantId']];
if (isset($param['merchant_id']) && $param['merchant_id']) {
$filter[] = ['goods.merchant_id', '=', $param['merchant_id']];
}
//是否店内
//if (isset($param['is_in_store']) && $param['is_in_store'] !== '') {

@ -37,7 +37,10 @@ class Goods extends Controller
$model = new GoodsModel;
$params = $this->request->param();
//$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));
if ($list->isEmpty()) {
return $this->renderSuccess(compact('list'));

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

Loading…
Cancel
Save