@@ -306,7 +306,7 @@ class ProductController extends BaseController
} elseif ($requestType == 'warning') {
$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('`stock`+`onStock`<`stockWarning`')
->andWhere("delStatus=0")
->select($field)->asArray()->all();
$itemInfoData = ProductClass::warningGroup($itemInfoData, $level);