This commit is contained in:
mkm 2024-01-06 10:41:08 +08:00
parent d5cd3ca669
commit d5234d9b29

View File

@ -55,9 +55,12 @@ class FinanceRefundApplyLists extends BaseAdminDataLists implements ListsSearchI
public function lists(): array
{
return FinanceRefundApply::where($this->searchWhere)
->field(['*'])
->alias('f')
->join('custom c', 'c.id = f.customer_id')
->join('project p', 'p.id = f.contract_id')
->field(['f.*','c.name as custom_name','p.name as project_name','p.project_code'])
->limit($this->limitOffset, $this->limitLength)
->order(['id' => 'desc'])
->order(['f.id' => 'desc'])
->select()
->toArray();
}