Browse Source

控制台

Gorden 8 months ago
parent
commit
1477de0966
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/admin/controller/order/WholeController.php

+ 4 - 0
app/admin/controller/order/WholeController.php

@@ -75,6 +75,10 @@ class WholeController extends Curd
         if ($type == 'todayOrder' && empty($where['order_addtimes'])){
             $where['order_addtimes'][0] = strtotime(date('Y-m-d').' 00:00:00');
             $where['order_addtimes'][1] = strtotime(date('Y-m-d').' 23:59:59');
+        }else if ($type == 'todayOrderAmount'){
+            $where['order_status_payment'] = 'SUCCESS';
+            $where['order_addtimes'][0] = strtotime(date('Y-m-d').' 00:00:00');
+            $where['order_addtimes'][1] = strtotime(date('Y-m-d').' 23:59:59');
         }
         $field = $field ?? 'order_addtimes';
         if (!empty($where['order_status_system']) && in_array($where['order_status_system'], ['PENDING', 'WAITING', 'SENDING', 'RECVING', 'SIGNED', 'CONFIRM'])) {