增加限制查询未退款的逻辑

This commit is contained in:
liu 2024-07-03 16:30:45 +08:00
parent 2f1288949b
commit b76f630bbd

View File

@ -602,7 +602,7 @@ class WorkbenchLogic extends BaseLogic
//当日营业额的统计
$today = StoreOrder::where(['paid' => YesNoEnum::YES, 'store_id' => $params['store_id']]);
$turnover_today = $today
$turnover_today = $today->where('refund_status',0)
->whereDay('create_time')
->sum('pay_price');
//当日利润的统计