moonsflyer 8 kuukautta sitten
vanhempi
commit
0d541148eb
1 muutettua tiedostoa jossa 3 lisäystä ja 1 poistoa
  1. 3 1
      app/api/lists/supply_demand/SupplyDemandLists.php

+ 3 - 1
app/api/lists/supply_demand/SupplyDemandLists.php

@@ -52,10 +52,12 @@ class SupplyDemandLists extends BaseApiDataLists implements ListsSearchInterface
      */
     public function queryWhere()
     {
-        $where[] = ['status', '=', 2];
+
 //        $where[] = ['expiration_time', '>=', time()];
         if (!empty($this->params['flag'])) {
             $where[] = ['user_id', '=', $this->userId];
+        }else{
+            $where[] = ['status', '=', 2];
         }
 //
 //        if (!empty($this->params['area_id'])) {