feat: 修改门店收款金额计算逻辑

This commit is contained in:
mkm 2024-06-22 10:09:14 +08:00
parent ccdbb687a5
commit d5255e38bb

View File

@ -74,7 +74,7 @@ class WorkbenchLogic extends BaseLogic
//门店收益金额
$data['income_amount'] = $orderLogic->storeOrderSumByDate($startTime, $endTime, [], 'profit');
//门店收款金额
$data['receipt_amount'] = UserRecharge::where($where)->sum('price');
$data['receipt_amount'] = UserRecharge::where($where)->whereBetweenTime('create_time', $startTime, $endTime)->sum('price');
$data['deposit_amount'] = StoreFinanceFlow::where($storeFinanceWhere)->whereBetweenTime('create_time', $startTime, $endTime)->sum('number');
//门店成交用户数