移除旧版导出

This commit is contained in:
liu
2026-08-13 00:13:13 +08:00
parent 6c794d0732
commit 91ea91784d
3 changed files with 0 additions and 154 deletions
@@ -83,23 +83,4 @@ class StatementController extends BaseMiniController
return $this->success($statement->toArray());
}
/** 导出对账单:?format=xlsx|pdf */
#[GetRoute('/statement/{id}/export', authorize: true, where: ['id' => '[0-9]+'])]
public function export(int $id, Request $request): Response
{
$user = $this->currentUser($request);
$store = $this->ensureStoreBound($user);
$statement = StatementModel::where('store_id', $store->id)->find($id);
if ($statement === null) {
throw new RepositoryException('对账单不存在');
}
return app(ExportService::class)->download(
'statement',
$statement,
(string) $request->query('format', ExportService::FORMAT_XLSX),
);
}
}