|
@@ -20,6 +20,7 @@ class OrderService
|
|
|
->whereIn('pay_category', ['GOODS', 'SERVICE', 'CHNMED', 'CHNNCD', 'PACKAGE', 'MEALS'])
|
|
|
->where('join_pay_order_id', '<>', '')
|
|
|
->where('pay_status', 'SUCCESS')
|
|
|
+ ->where('pay_category' ,'<>', 'REFUND')
|
|
|
->sum('pay_amount');
|
|
|
$refundAmount = PayDetail::whereRaw('CAST(UNIX_TIMESTAMP(pay_paytimes) as SIGNED) > ? ', [$todayTimeUnix])
|
|
|
->where('pay_status', 'SUCCESS')
|
|
@@ -40,6 +41,7 @@ class OrderService
|
|
|
->whereIn('pay_prepayid', ['WXPAY', 'ALIPAY', 'OFFLINE_WXPAY', 'OFFLINE_ALIPAY', 'MONEY'])
|
|
|
->where('join_pay_order_id', '<>', '')
|
|
|
->where('pay_status', 'SUCCESS')
|
|
|
+ ->where('pay_category' ,'<>', 'REFUND')
|
|
|
->sum('pay_amount');
|
|
|
|
|
|
$data['todaySales'] = round($data['todaySales'], 2);
|