|
|
@@ -129,6 +129,11 @@ class GoodsService extends BaseService
|
|
|
$where['status'] = $status;
|
|
|
}
|
|
|
|
|
|
+ $type = isset($params['type']) && $params['type']? intval($params['type']) : 1;
|
|
|
+ if ($type > 0) {
|
|
|
+ $where['type'] = $type;
|
|
|
+ }
|
|
|
+
|
|
|
// 企业支持:如果当前登录用户关联了企业信息,则只查询该企业的商品
|
|
|
if (isset($params['store_id']) && $params['store_id'] > 0) {
|
|
|
$where['store_id'] = $params['store_id'];
|