feat: 修改工作台逻辑以适应退款状态变更
This commit is contained in:
parent
2f756f10d7
commit
131dab078a
@ -79,8 +79,8 @@ class WorkbenchLogic extends BaseLogic
|
||||
$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');
|
||||
$refundPrice = StoreOrder::where($where)->where('status', 'in', [-1, -2])->sum('refund_price');
|
||||
$refund = StoreOrder::where($where)->where('status', 'in', [-1, -2])->count();
|
||||
$refundPrice = StoreOrder::where($where)->where('refund_status', 2)->sum('refund_price');
|
||||
$refund = StoreOrder::where($where)->where('refund_status',2)->count();
|
||||
$payPercent = bcmul((string)($user > 0 ? bcdiv($payPeople, $user, 4) : 0), '100', 2); //访客-付款转化率
|
||||
|
||||
return [
|
||||
|
Loading…
x
Reference in New Issue
Block a user