修改门店收款的商户后台的统计

This commit is contained in:
liu 2024-06-25 17:11:35 +08:00
parent 61175aa684
commit b7218e96e6

View File

@ -35,6 +35,7 @@ use app\common\model\system_store\SystemStore;
use app\common\model\user_recharge\UserRecharge;
use app\common\service\ConfigService;
use app\common\service\FileService;
use app\statistics\logic\OrderLogic;
/**
@ -82,7 +83,9 @@ class WorkbenchLogic extends BaseLogic
//门店收益金额
$data['income_amount'] = StoreFinanceFlow::where($storeFinanceWhere)->whereBetweenTime('create_time', $startTime, $endTime)->sum('number');
//门店收款金额
$data['receipt_amount'] = UserRecharge::where($userRechargeWhere)->whereBetweenTime('create_time', $startTime, $endTime)->sum('price');
$all_where['paid'] = 1;
$data['receipt_amount'] = OrderLogic::dayPayPrice($all_where);
// $data['receipt_amount'] = UserRecharge::where($userRechargeWhere)->whereBetweenTime('create_time', $startTime, $endTime)->sum('price');
//保证金金额
$data['deposit_amount'] = StoreFinanceFlow::where($storeFinanceWhereTwo)->whereBetweenTime('create_time', $startTime, $endTime)->sum('number');
//门店成交用户数