소스 검색

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

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"),