wesmiler пре 2 година
родитељ
комит
b922b5849d
1 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      app/Services/Api/GoodsCategoryService.php

+ 5 - 0
app/Services/Api/GoodsCategoryService.php

@@ -76,6 +76,11 @@ class GoodsCategoryService extends BaseService
                     $query->where('a.status', $status);
                     $query->where('a.status', $status);
                 }
                 }
 
 
+                $pid = isset($params['pid']) ? $params['pid'] : -1;
+                if ($pid >= 0) {
+                    $query->where('a.pid', $pid);
+                }
+
                 // 商户
                 // 商户
                 $merchId = isset($params['merch_id']) ? $params['merch_id'] : 0;
                 $merchId = isset($params['merch_id']) ? $params['merch_id'] : 0;
                 if ($merchId > 0) {
                 if ($merchId > 0) {