feat: 修改门店收款金额计算逻辑
This commit is contained in:
parent
ccdbb687a5
commit
d5255e38bb
@ -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');
|
||||
//门店成交用户数
|
||||
|
Loading…
x
Reference in New Issue
Block a user