Browse Source

Merge branch 'dev_wf' of wugg/phpstock into version1.5

wufeng 2 years ago
parent
commit
1de7bddf49
1 changed files with 11 additions and 9 deletions
  1. 11 9
      app/admin/controller/SaleReport.php

+ 11 - 9
app/admin/controller/SaleReport.php

@@ -1662,17 +1662,19 @@ class SaleReport extends Base
             ->whereNull('b.id')
             ->page($param['page'], $param['size'])
             ->order("a.addtime desc")
-            ->cursor();
-
-        $list = [];
-        foreach ($data as $value) {
-
-            $value['order_type'] = isset($this->all_order_type[$value['order_type']]) ? $this->all_order_type[$value['order_type']] : '';
+            ->select()
+            ->toArray();
+//            ->cursor();
 
-            $list[] = $value;
-        }
+//        $list = [];
+//        foreach ($data as $value) {
+//
+//            $value['order_type'] = isset($this->all_order_type[$value['order_type']]) ? $this->all_order_type[$value['order_type']] : '';
+//
+//            $list[] = $value;
+//        }
 
-        return app_show(0, '请求成功', ['list' => $list, 'count' => $count]);
+        return app_show(0, '请求成功', ['list' => $data, 'count' => $count]);
 
     }