shish il y a 3 ans
Parent
commit
352bfdbf33
1 fichiers modifiés avec 1 ajouts et 6 suppressions
  1. 1 6
      app-ghs/controllers/ProductController.php

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

@@ -217,12 +217,7 @@ class ProductController extends BaseController
                 ->andWhere("delStatus=0")
                 ->select($field)->asArray()->all();
         } else {
-            if ($requestType == 'common') {
-                //通用花材列表
-                $field = 'id,py,cover,name,ratio,cost,addPrice,classId,skMore,skPrice,itemId,smallUnit,smallRatio,bigUnit,smallUnit,ratioType,variety,price,stock,stockWarning,discountPrice,presell,presellDate';
-                $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
-                $itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
-            } elseif ($requestType == 'hasStockList') {
+            if ($requestType == 'hasStockList') {
                 //有库存的花材列表
                 $field = 'id,py,name,classId,itemId,price,skPrice,stock';
                 $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);