Update
parent
11b6e0c1b8
commit
1d9ba24514
|
|
@ -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)
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue