|
|
@@ -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;
|
|
|
}
|
|
|
|
|
|
// 分页查询
|