['reimburser', 'reimbursement_date', 'customer_id', 'payee_name', 'payee_account'], ]; } /** * @notes 获取列表 * @return array * @throws \think\db\exception\DataNotFoundException * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException * @author likeadmin * @date 2023/12/19 11:12 */ public function lists(): array { return ExpenseReimbursement::where($this->searchWhere) ->field(['id', 'org_id', 'dept_id', 'approve_id', 'reimburser', 'reimbursement_date', 'customer_id', 'pay_type', 'reimbursement_amount', 'reimbursement_amount_daxie', 'payee_name', 'payee_bank', 'payee_account', 'remark', 'annex']) ->limit($this->limitOffset, $this->limitLength) ->order(['id' => 'desc']) ->select() ->toArray(); } /** * @notes 获取数量 * @return int * @author likeadmin * @date 2023/12/19 11:12 */ public function count(): int { return ExpenseReimbursement::where($this->searchWhere)->count(); } }