shish 2 年之前
父节点
当前提交
f294583f83
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app-ghs/controllers/ProductController.php

+ 1 - 1
app-ghs/controllers/ProductController.php

@@ -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);