|
@@ -53,7 +53,7 @@ class ProductController extends BaseController
|
|
|
}
|
|
}
|
|
|
$where['shopId'] = $shopId;
|
|
$where['shopId'] = $shopId;
|
|
|
|
|
|
|
|
- $itemInfoData = ProductClass::getAllByCondition($where, null, "*");
|
|
|
|
|
|
|
+ $itemInfoData = ProductClass::getAllByCondition($where, ['actualSold'=>SORT_DESC,'inTurn'=>SORT_DESC], "*");
|
|
|
$itemInfoData = ProductClass::groupProductInfo($itemInfoData);
|
|
$itemInfoData = ProductClass::groupProductInfo($itemInfoData);
|
|
|
//常用的itemIds
|
|
//常用的itemIds
|
|
|
$oftenItemIds = ProductClass::getOftenItemIds($shopId);
|
|
$oftenItemIds = ProductClass::getOftenItemIds($shopId);
|