feat: 修改订单统计逻辑以区分已支付用户
This commit is contained in:
parent
09dff2250e
commit
abf031e75a
@ -75,7 +75,7 @@ class WorkbenchLogic extends BaseLogic
|
||||
$user = StoreVisit::where($where)->group('uid')->count();
|
||||
$cart = Cart::where($where)->where('is_fail', 0)->sum('cart_num');
|
||||
$order = StoreOrder::where($where)->count();
|
||||
$payPeople = StoreOrder::where($where)->group('uid')->count();
|
||||
$payPeople = StoreOrder::where($where)->where('paid', 1)->group('uid')->count();
|
||||
$pay = StoreOrder::where($where)->where('paid', 1)->where('refund_status', 0)->count();
|
||||
$payPrice = StoreOrder::where($where)->where('paid', 1)->where('refund_status', 0)->sum('pay_price');
|
||||
$cost = StoreOrder::where($where)->where('paid', 1)->sum('cost');
|
||||
|
Loading…
x
Reference in New Issue
Block a user