Browse Source

no message

duqinya 6 years ago
parent
commit
2b9659492f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Repositories/ConfigCityManagementRepository.php

+ 4 - 0
app/Repositories/ConfigCityManagementRepository.php

@@ -20,6 +20,10 @@ class ConfigCityManagementRepository
             $this->configCityManagement = $this->configCityManagement
                 ->orderBy('id', 'desc')
                 ->where(['status' => 0,'city_id' => $request['city_id']]);
+        }else{
+            $this->configCityManagement = $this->configCityManagement
+                ->orderBy('id', 'desc')
+                ->where('status',0);
         }
 
             return $this->configCityManagement->paginate($perPage);