|
@@ -137,7 +137,7 @@ class AccountService extends BaseService
|
|
|
'total' => $model->sum(DB::raw('abs(money)'))
|
|
'total' => $model->sum(DB::raw('abs(money)'))
|
|
|
];
|
|
];
|
|
|
|
|
|
|
|
- if($accountType==5){
|
|
|
|
|
|
|
+ if($accountType==5 && $type==11){
|
|
|
$account = PtAccountModel::where(['mark'=>1])->first();
|
|
$account = PtAccountModel::where(['mark'=>1])->first();
|
|
|
$counts['total'] = isset($account['balance'])?moneyFormat($account['balance'],2) : 0;
|
|
$counts['total'] = isset($account['balance'])?moneyFormat($account['balance'],2) : 0;
|
|
|
}
|
|
}
|