feat: 安全回写档口入库码并支持核验恢复 (#234)

This commit is contained in:
chengma
2026-08-15 09:10:10 +08:00
parent 15ebda23e3
commit 2778eed29f
11 changed files with 782 additions and 4 deletions
+7
View File
@@ -78,6 +78,13 @@ func main() {
if aiInterrupted > 0 {
log.Printf("已把 %d 个上次进程遗留的 AI 匹配批次标记为中断", aiInterrupted)
}
innerCodeInterrupted, err := service.InterruptApplyingInnerCodes(db, time.Now())
if err != nil {
log.Fatalf("恢复中断的档口入库码回写失败: %v", err)
}
if innerCodeInterrupted > 0 {
log.Printf("已把 %d 条上次进程遗留的档口入库码回写标记为需核对", innerCodeInterrupted)
}
log.Printf("数据库已就绪")
// 3. Web 引擎