فهرست منبع

充值统计:推广的新增用户充值统计

liuzejian 1 سال پیش
والد
کامیت
1fb5e6fd20
1فایلهای تغییر یافته به همراه1 افزوده شده و 0 حذف شده
  1. 1 0
      app/Console/Commands/Statistic/PromotionDayCharge.php

+ 1 - 0
app/Console/Commands/Statistic/PromotionDayCharge.php

@@ -103,6 +103,7 @@ class PromotionDayCharge extends Command
         $info = DB::table('orders')
             ->where('promotion_id', $promotionId)
             ->whereBetween('ranse_created_at', [$date, $date. ' 23:59:59'])
+            ->whereBetween('created_at', [$date, $date. ' 23:59:59'])
             ->select(
                 // 总支付金额
                 DB::raw("sum(if(status <> 'unpaid', price, 0)) as pay_money"),