cqp 1 周之前
父节点
当前提交
e11efa378d
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/Service/StatisticsService.php

+ 3 - 1
app/Service/StatisticsService.php

@@ -655,7 +655,9 @@ class StatisticsService extends Service
             foreach ($group as $val) {
                 // 计算合计
                 $sumRow = [];
-                foreach ($val as $row) {
+                foreach ($val as $key => $row) {
+                    $order_time = $row['order_time'] ? date('Y-m-d',$row['order_time']) : '';
+                    $val[$key]['order_time_show'] = $order_time;
                     foreach ($sumFields as $field) {
                         $sumRow[$field] = isset($sumRow[$field])
                             ? bcadd($sumRow[$field], $row[$field], 2)