Browse Source

完善功能

gorden 7 tháng trước cách đây
mục cha
commit
f0a714bed2
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      app/admin/service/statistics/OrderService.php

+ 2 - 0
app/admin/service/statistics/OrderService.php

@@ -17,6 +17,8 @@ class OrderService
         // 今日收入
         $data['todayRevenue'] = Order::where('order_status_payment', 'SUCCESS')
             ->where('order_addtimes', '>', $todayTimeUnix)
+            ->where('order_addtimes', '<>', 'RETURN')
+            ->where('order_addtimes', '<>', 'RECHARGE')
             ->sum('order_amount_pay');
         // 今日退单
         $data['todayRefund'] = OrderReturn::where('order_return_addtimes', '>', $todayTimeUnix)->count();