shish преди 5 години
родител
ревизия
aa19f4cdc3
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      biz-ghs/item/services/ItemService.php

+ 2 - 2
biz-ghs/item/services/ItemService.php

@@ -202,12 +202,12 @@ class ItemService extends BaseService
     public static function initItem($sjId, $shopId)
     {
         //获取pt 的花材分类
-        $ptClass = PtItemCatClass::getAllList("*", ['type' => 0]);
+        $ptClass = PtItemCatClass::getAllList("*", ['type' => 0], 'inTurn desc');
         if (empty($ptClass)) {
             return false;
         }
         $hasClassIds = array_column($ptClass, 'id');
-        $relate = PtItemCatRelateClass::getAllByCondition(['catId' => ['in', $hasClassIds]], 'inTurn desc', '*');
+        $relate = PtItemCatRelateClass::getAllByCondition(['catId' => ['in', $hasClassIds]], null, '*');
         $relateInfo = [];
         $hasItemIds = [];
         if (!empty($relate)) {