liugc 1 год назад
Родитель
Сommit
d8313c4cad
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      app/workerapi/lists/GoodsFeeStandardsLists.php

+ 3 - 3
app/workerapi/lists/GoodsFeeStandardsLists.php

@@ -50,11 +50,11 @@ class GoodsFeeStandardsLists extends BaseWorkerDataLists implements ListsSearchI
      */
     public function lists(): array
     {
-        $data = GoodsFeeStandards::where($this->queryWhere())->where($this->searchWhere)
+        return GoodsFeeStandards::where($this->queryWhere())->where($this->searchWhere)
                 ->field(['*'])
                 ->append(['type_text'])
                 ->select()->toArray();
-        return array_values(array_reduce($data, function ($carry, $item) {
+        /*return array_values(array_reduce($data, function ($carry, $item) {
             $type = $item['type'];
             if (!isset($carry[$type])) {
                 $carry[$type] = [
@@ -65,7 +65,7 @@ class GoodsFeeStandardsLists extends BaseWorkerDataLists implements ListsSearchI
             }
             $carry[$type]['type_data'][] = $item;
             return $carry;
-        }, []));
+        }, []));*/
     }
     /**
      * @notes 获取数量