wesmiler 4 天之前
父節點
當前提交
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'),
             'count' => $model->count('a.id'),
             'total' => $model->sum(DB::raw('abs(money)')),
             'total' => $model->sum(DB::raw('abs(money)')),
             'pt_total' => 0,
             'pt_total' => 0,
+            'pool_total' => 0,
         ];
         ];
 
 
-        if($accountType==5 && $type==11){
+        if($accountType==5){
             $account = PtAccountModel::where(['mark'=>1])->first();
             $account = PtAccountModel::where(['mark'=>1])->first();
             $counts['pt_total'] = isset($account['balance'])?moneyFormat($account['balance'],2) : 0;
             $counts['pt_total'] = isset($account['balance'])?moneyFormat($account['balance'],2) : 0;
+            $counts['pool_total'] = isset($account['pool_total'])?moneyFormat($account['pool_total'],2) : 0;
         }
         }
 
 
         // 分页查询
         // 分页查询