recalculate(); } catch (Throwable $exception) { $this->error($exception->getMessage()); return self::FAILURE; } $this->table(['项目', '值'], [ ['账户数', $result['accounts']], ['流水行数', $result['flows']], ['期末余额合计', number_format($result['balance_sum'], 2)], ['期初日期', $result['opening_date']], ]); $this->info('财务台账流水重算完成。'); return self::SUCCESS; } }