shish před 1 rokem
rodič
revize
262fa3e676
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      console/controllers/LsCustomController.php

+ 1 - 1
console/controllers/LsCustomController.php

@@ -29,7 +29,7 @@ class LsCustomController extends Controller
         $query = new \yii\db\Query();
         $query = new \yii\db\Query();
         $query->from(Shop::tableName());
         $query->from(Shop::tableName());
         $query->where(['ptStyle' => 1]);
         $query->where(['ptStyle' => 1]);
-        $query->orderBy('addTime ASC');
+        $query->orderBy('addTime DESC');
         foreach ($query->batch(20) as $shopList) {
         foreach ($query->batch(20) as $shopList) {
             foreach ($shopList as $shop) {
             foreach ($shopList as $shop) {