|
|
@@ -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) {
|
|
|
|