feat: 异步解析大文件WPS报备资料

This commit is contained in:
hectorzhao
2026-09-04 22:51:07 +08:00
parent aaf96db2d0
commit 5925cf493b
22 changed files with 720 additions and 80 deletions
@@ -0,0 +1,9 @@
ALTER TABLE "ReportMaterialImportBatch"
ADD COLUMN "progress" INTEGER NOT NULL DEFAULT 100,
ADD COLUMN "progressStage" TEXT,
ADD COLUMN "errorMessage" TEXT,
ADD COLUMN "startedAt" TIMESTAMP(3),
ADD COLUMN "heartbeatAt" TIMESTAMP(3);
CREATE INDEX "ReportMaterialImportBatch_status_heartbeatAt_idx"
ON "ReportMaterialImportBatch"("status", "heartbeatAt");
+6
View File
@@ -1395,6 +1395,11 @@ model ReportMaterialImportBatch {
fileName String
reportType String
status String @default("analyzed")
progress Int @default(100)
progressStage String?
errorMessage String?
startedAt DateTime?
heartbeatAt DateTime?
sheetName String
headerRowCount Int @default(1)
dataStartRow Int @default(2)
@@ -1413,6 +1418,7 @@ model ReportMaterialImportBatch {
@@index([tenantId, createdAt])
@@index([status, createdAt])
@@index([status, heartbeatAt])
}
model ReportMaterialImportItem {