wesmiler 5 дней назад
Родитель
Сommit
ad1640eff9
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app/Services/Common/AccountService.php

+ 3 - 1
app/Services/Common/AccountService.php

@@ -136,11 +136,13 @@ class AccountService extends BaseService
             'count' => $model->count('a.id'),
             'total' => $model->sum(DB::raw('abs(money)')),
             'pt_total' => 0,
+            'pool_total' => 0,
         ];
 
-        if($accountType==5 && $type==11){
+        if($accountType==5){
             $account = PtAccountModel::where(['mark'=>1])->first();
             $counts['pt_total'] = isset($account['balance'])?moneyFormat($account['balance'],2) : 0;
+            $counts['pool_total'] = isset($account['pool_total'])?moneyFormat($account['pool_total'],2) : 0;
         }
 
         // 分页查询