Gorden преди 8 месеца
родител
ревизия
1477de0966
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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'])) {