Commit Graph

5 Commits (main)

Author SHA1 Message Date
haoliang 7a7b2baafc 修复JSON解析异常不写log_collect_raw的遗漏
ParseAndSave内部的JSON解析异常被自吞(catch+return),外层DoCollectCycle
的WriteBatch永远走不到。修复:在ParseAndSave内部catch也调用WriteBatch

ErrorSimulation工具升级为真实代码路径验证(含HTTP服务器模拟JSON解析)
1 month ago
haoliang cdb03d4db3 增强错误诊断:递归展开异常链+分类写入DB/告警
1. CollectWorker新增GetDetailedErrorMessage递归展开AggregateException
   解决HTTP异常只记录模糊的'发生一个或多个错误',现可追踪到SocketException

2. JSON解析失败新增WriteBatch写入log_collect_raw(之前丢失DB记录)

3. ProductionTracker失败→cnc_alert(alert_type=production_error)

4. DailySummaryJob失败→cnc_alert(alert_type=summary_error)

5. CollectRecordWriter.DB写失败时本地日志记录完整异常链

6. log_collect_raw.error_message VARCHAR(500)→TEXT

7. 新增ErrorSimulation验证工具(模拟4类异常→验证DB/日志)
1 month ago
haoliang 87d7dfeee1 新增产量重建工具RebuildProduction:从log_collect_raw原始JSON重放修复后的ProductionTracker算法,修正2026-05-07产量数据
工具用法: dotnet run --project tools/RebuildProduction

产量修正结果(2026-05-07):
- 总产量: 5,732 → 14,770 (+158%)
- manual_reset段: 0 → 8,740 (50段全部修正)
- program_change段: 830 → 1,128 (76段中偏差的已修正)
- end_of_day段: 4,902 (无变化)

修正后工人产量:
- 郭浩: 4,176 → 11,359
- 李文科: 692 → 1,574
- 公用: 214 → 642
- 冷春英: 211 → 367
- 赵福新: 132 → 253
- 宋志国: 95 → 226
- 赵双,胡东歌: 137 → 205
- 李梦梦,李玉蒙: 75 → 144
- 王涛: 0 (机床实际未运行)
1 month ago
haoliang 71f8e7fbc7 修复机床排行machineId缺失+清理gitignore(移除publish/tools/dll/测试报告) 2 months ago
haoliang 3e7c34c52f 修复设备详情关联名称为空(Bug6)+布尔字段类型(Bug7)+异常过滤器生产模式 2 months ago