|
|
@@ -304,7 +304,7 @@ class ProductController extends BaseController
|
|
|
$itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
|
|
|
$itemInfoData = ProductClass::cgItemGroup($itemInfoData, $level);
|
|
|
} elseif ($requestType == 'warning') {
|
|
|
- $field = 'id,py,cover,name,cost,itemId,classId,skPrice,variety,price,discountPrice,stock,actualSold,presell,bigUnit,stockWarning,status,frontHide';
|
|
|
+ $field = 'id,py,cover,name,cost,itemId,classId,skPrice,variety,price,discountPrice,stock,onStock,actualSold,presell,bigUnit,stockWarning,status,frontHide';
|
|
|
$itemInfoData = Product::find()->where("mainId={$this->mainId}")
|
|
|
->andWhere('`stock`<`stockWarning`')
|
|
|
->andWhere("delStatus=0")
|