update
This commit is contained in:
parent
c648cb667f
commit
460550be17
@ -21,6 +21,7 @@ use app\common\model\cost_project\CostProject;
|
||||
use app\common\lists\ListsSearchInterface;
|
||||
use app\common\model\auth\Admin;
|
||||
use app\common\model\cost_project\CostProjectPerson;
|
||||
use app\common\model\ProjectCommission;
|
||||
use app\common\model\zjzx_finance\ZjzxInvoice;
|
||||
use app\common\model\zjzx_finance\ZjzxRefund;
|
||||
|
||||
@ -75,6 +76,7 @@ class CostProjectLists extends BaseAdminDataLists implements ListsSearchInterfac
|
||||
$item['contract']['contract_type_text'] = $item['contract']->contract_type_text;
|
||||
$item['total_invoice_amount'] = ZjzxInvoice::where('project_id',$item['id'])->sum('apply_amount');
|
||||
$item['total_refund_amount'] = ZjzxRefund::where('project_id',$item['id'])->sum('amount');
|
||||
$item['total_pay_amount'] = ProjectCommission::where('project_id',$item['id'])->sum('bczfze');
|
||||
})
|
||||
->toArray();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user