Browse Source

封装的报表类方法

gogs 1 month ago
parent
commit
0cd36bb7ca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Service/AuxiliaryAccountService.php

+ 1 - 1
app/Service/AuxiliaryAccountService.php

@@ -182,7 +182,7 @@ class AuxiliaryAccountService extends Service
         }
         $model = new ExpenseClaimsDetails();
         //总金额
-        $list = $model->where('expense_claims_id',$month_ps_order_id)->where('del_time',0)->select("fee_id","amount as total_amount","remark","entrust_type","item_id")->get()->toArray();
+        $list = $model->where('expense_claims_id',$month_ps_order_id)->where('del_time',0)->select("fee_id","amount as total_amount","remark","entrust_type","item_id","r_id")->get()->toArray();
         foreach ($list as &$v){
             $v['entrust1_amount'] = $v['entrust_type'] == 1 ?  $v['total_amount'] : 0;
             $v['entrust2_amount'] = $v['entrust_type'] == 2 ?  $v['total_amount'] : 0;