|
|
@@ -39,7 +39,7 @@ class GoodsLists extends BaseApiDataLists implements ListsSearchInterface
|
|
|
public function setSearch(): array
|
|
|
{
|
|
|
return [
|
|
|
- '=' => ['goods_status','is_agent'],
|
|
|
+ '=' => ['goods_status'],
|
|
|
'%like%' => ['goods_name','goods_brand'],
|
|
|
'between' => ['service_total', 'service_fee'],
|
|
|
];
|
|
|
@@ -49,7 +49,7 @@ class GoodsLists extends BaseApiDataLists implements ListsSearchInterface
|
|
|
{
|
|
|
$where = [];
|
|
|
$where['user_id'] = 0;//常规商品
|
|
|
- $where['is_agent'] = 0;//不是代理商品
|
|
|
+ $where['is_agent'] = 0;//常规商品
|
|
|
if (!empty($this->params['goods_category_id'])) {
|
|
|
$goodsCategoryId = end($this->params['goods_category_id']);
|
|
|
$goodsCategoryData = GoodsCategory::where(['status'=>1])->order(['pid' => 'asc','weigh' => 'desc', 'id' => 'desc'])
|