|
|
@@ -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 获取数量
|