feat: 添加微信支付和支付宝支付条码支付功能

This commit is contained in:
mkm 2024-06-22 11:39:52 +08:00
parent 7c60652624
commit 8faafdf164

View File

@ -65,6 +65,10 @@ class WorkbenchLogic extends BaseLogic
$data['order_amount'] = $orderLogic->storeOrderSumByDate($startTime, $endTime, $where);
//余额支付总金额
$data['balance_amount'] = $orderLogic->storeOrderSumByDate($startTime, $endTime, array_merge($where, ['pay_type' => PayEnum::BALANCE_PAY]));
//微信条码支付总金额
$data['wechat_code_amount'] = $orderLogic->storeOrderSumByDate($startTime, $endTime, array_merge($where, ['pay_type' => PayEnum::WECHAT_PAY_BARCODE]));
//支付条码支付总金额
$data['alipay_code_amount'] = $orderLogic->storeOrderSumByDate($startTime, $endTime, array_merge($where, ['pay_type' => PayEnum::ALIPAY_BARCODE]));
//线下收银总金额
$data['cashier_amount'] = $orderLogic->storeOrderSumByDate($startTime, $endTime, array_merge($where, ['shipping_type' => 3]));
//现金收银总金额