浏览代码

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

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