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