shish 3 лет назад
Родитель
Сommit
559143138c
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      app-hd/controllers/ProductController.php

+ 1 - 2
app-hd/controllers/ProductController.php

@@ -147,8 +147,7 @@ class ProductController extends BaseController
         $where['delStatus'] = $delStatus;
 
         $level = 0;
-        $field = 'id,py,cover,name,ratio,cost,addPrice,classId,skMore,skPrice,itemId,smallUnit,smallRatio,presellDate,bigUnit,smallUnit,ratioType,variety,price,stock,stockWarning,discountPrice,presell';
-        $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], $field);
+        $itemInfoData = ProductClass::getAllByCondition($where, ['inTurn' => SORT_DESC, 'actualSold' => SORT_DESC], "*");
         $itemInfoData = ProductClass::groupProductInfo($itemInfoData, $level);
 
         $data = ProductService::assembleData($classIds, $itemInfoData, true);