|
|
@@ -90,6 +90,12 @@ class ProductController extends BaseController
|
|
|
if(!$shopId){
|
|
|
$shopId = $this->shopId;
|
|
|
}
|
|
|
+ $type = Yii::$app->request->get('type','');
|
|
|
+ if($type=='waring'){
|
|
|
+ //库存预警
|
|
|
+ $waringItemIds = ProductClass::getItemIdsWarning($this->sjId,$shopId);
|
|
|
+ $itemIds = array_intersect($itemIds,$waringItemIds);
|
|
|
+ }
|
|
|
$data = ProductClass::getProductInfoByItemIds($itemIds,$shopId);
|
|
|
util::success(['list'=>$data]);
|
|
|
}
|