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