liugc пре 1 година
родитељ
комит
fc33d1dbe4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/api/lists/GoodsCategoryLists.php

+ 1 - 1
app/api/lists/GoodsCategoryLists.php

@@ -39,7 +39,7 @@ class GoodsCategoryLists extends BaseApiDataLists implements ListsSearchInterfac
      */
      */
     public function lists(): array
     public function lists(): array
     {
     {
-        $lists = GoodsCategory::where($this->searchWhere)
+        $lists = GoodsCategory::where($this->searchWhere)->where('status',1)
             ->field(['id', 'pid' ,'picture', 'name'])
             ->field(['id', 'pid' ,'picture', 'name'])
             ->order(['weigh' => 'desc'])
             ->order(['weigh' => 'desc'])
             ->select()
             ->select()