Ver Fonte

up - GoodsFeeStandards

liugc há 1 ano atrás
pai
commit
d8313c4cad
1 ficheiros alterados com 3 adições e 3 exclusões
  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 获取数量