|
@@ -396,7 +396,7 @@ class CardMainController extends Curd
|
|
// 已激活统计
|
|
// 已激活统计
|
|
$usedTotal = Card::where('card_status', 'USED')->where('join_card_main_id', $total['card_main_id'])->count();
|
|
$usedTotal = Card::where('card_status', 'USED')->where('join_card_main_id', $total['card_main_id'])->count();
|
|
$statistics['used']['total'] += $usedTotal;
|
|
$statistics['used']['total'] += $usedTotal;
|
|
- $statistics['used']['amount'] = sprintf('%.2f', $usedTotal * $total['card_main_amount']);
|
|
|
|
|
|
+ $statistics['used']['amount'] = sprintf('%.2f', $usedTotal * $total['card_main_amount'] + $statistics['used']['amount']);
|
|
// 使用完成统计
|
|
// 使用完成统计
|
|
$doneTotal = Card::where('card_status', 'DONE')->where('join_card_main_id', $total['card_main_id'])->count();
|
|
$doneTotal = Card::where('card_status', 'DONE')->where('join_card_main_id', $total['card_main_id'])->count();
|
|
$statistics['done']['total'] += $doneTotal;
|
|
$statistics['done']['total'] += $doneTotal;
|