feat(WorkbenchLogic): 添加了门店押金金额的计算逻辑

This commit is contained in:
mkm 2024-06-21 13:40:34 +08:00
parent fcfb89a066
commit b4a6264778

View File

@ -69,6 +69,8 @@ class WorkbenchLogic extends BaseLogic
'store_id'=>$params['store_id'],
'paid'=>YesNoEnum::YES
])->sum('price');
$data['deposit_amount'] = StoreCashFinanceFlow::where('store_id', $params['store_id'])->where('financial_type',11)->where('financial_pm',0)->whereBetweenTime('create_time', $startTime, $endTime)->sum('number');
//门店成交用户数
$data['user_number'] = StoreOrder::where('store_id', $params['store_id'])
->where('paid', 1)