|
@@ -219,7 +219,7 @@ class ProductController extends BaseController
|
|
|
$itemInfoData = ProductClass::cgItemGroup($itemInfoData, $level);
|
|
$itemInfoData = ProductClass::cgItemGroup($itemInfoData, $level);
|
|
|
} elseif ($requestType == 'warning') {
|
|
} elseif ($requestType == 'warning') {
|
|
|
//库存预警
|
|
//库存预警
|
|
|
- $field = 'id,py,cover,name,cost,itemId,classId,skPrice,variety,price,discountPrice,stock,presell,stockWarning';
|
|
|
|
|
|
|
+ $field = 'id,py,cover,name,cost,itemId,classId,skPrice,variety,price,discountPrice,stock,presell,stockWarning,status';
|
|
|
$itemInfoData = Product::find()->where("mainId={$this->mainId}")
|
|
$itemInfoData = Product::find()->where("mainId={$this->mainId}")
|
|
|
->andWhere('`stock`<`stockWarning`')
|
|
->andWhere('`stock`<`stockWarning`')
|
|
|
->andWhere("delStatus=0")
|
|
->andWhere("delStatus=0")
|