fix: 加固批量出库导入流程

This commit is contained in:
Nixevol
2026-07-14 07:02:41 +08:00
parent 3c74f03e7e
commit 9644f5c128
54 changed files with 5292 additions and 516 deletions
+18 -16
View File
@@ -118,6 +118,7 @@ enum OutboundImportSessionStatus {
READY
IMPORTING
IMPORTED
PARTIAL
FAILED
EXPIRED
}
@@ -436,19 +437,23 @@ model OperationLog {
}
model OutboundImportSession {
id String @id @default(cuid())
status OutboundImportSessionStatus @default(PARSING)
fileName String @map("file_name")
fileKey String? @map("file_key") @db.VarChar(512)
total Int @default(0)
validCount Int @default(0) @map("valid_count")
invalidCount Int @default(0) @map("invalid_count")
error String? @db.Text
committedAt DateTime? @map("committed_at")
expiresAt DateTime @map("expires_at")
createdBy Int? @map("created_by")
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")
id String @id @default(cuid())
status OutboundImportSessionStatus @default(PARSING)
fileName String @map("file_name")
fileKey String? @map("file_key") @db.VarChar(512)
requestId String? @unique @map("request_id")
previewJobId String? @unique @map("preview_job_id")
importJobId String? @unique @map("import_job_id")
importRunToken String? @map("import_run_token")
total Int @default(0)
validCount Int @default(0) @map("valid_count")
invalidCount Int @default(0) @map("invalid_count")
error String? @db.Text
committedAt DateTime? @map("committed_at")
expiresAt DateTime @map("expires_at")
createdBy Int? @map("created_by")
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")
creator SysUser? @relation(fields: [createdBy], references: [id])
rows OutboundImportRow[]
@@ -469,9 +474,6 @@ model OutboundImportRow {
outTime DateTime? @map("out_time")
outImagePaths Json? @map("out_image_paths")
outImageKeys Json? @map("out_image_keys")
txHash String? @map("tx_hash")
onchainAt DateTime? @map("onchain_at")
blockHeight BigInt? @map("block_height")
remark String?
reason String? @db.Text
preview Json?