feat: 异步解析大文件WPS报备资料
This commit is contained in:
@@ -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");
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user