6
0
Fork 0
base
Jing Li 2023-10-23 20:26:06 +08:00
parent 11b6e0c1b8
commit 1d9ba24514
1 changed files with 3 additions and 3 deletions

View File

@ -60,9 +60,9 @@ class StatisticsTotal extends RadialBar
$order = Order::whereBetween('created_at', [$start_time, $end_time])->whereNotIn('status', [Order::STATUS_PENDING, Order::STATUS_CANCELLED])->sum('total_amount');
// 卡片内容
$this->withContent([
'total_points'=> UserInfo::sum('points'),
'total_wallet'=> bcdiv(Wallet::sum('balance'), 100, 2),
'total_balance'=> bcdiv(Balance::sum('balance'), 100, 2),
'total_points'=> bcdiv(UserInfo::sum('points'), 100, 2),
// 'total_wallet'=> bcdiv(Wallet::sum('balance'), 100, 2),
// 'total_balance'=> bcdiv(Balance::sum('balance'), 100, 2),
'order_money' => bcdiv($order, 100, 2)
]);
}