shish 1 rok pred
rodič
commit
262fa3e676

+ 1 - 1
console/controllers/LsCustomController.php

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