certflow.controllers.correction_queue_controller module¶
校正队列控制器
桥接校正队列界面(View)与校正队列服务(Service): - 读:列出黄标(flag)销售计划记录 + 未释放隔离(quarantine)记录; - 写:校正黄标(upsert 字典自学习)/ 释放隔离(重建 SalePlan)/ 删除隔离。
- 架构层次:View (CorrectionQueueView) → Controller (CorrectionQueueController)
→ Service (CorrectionQueueService) → Model (SalePlan / QuarantineSalePlan / CaliberMapping / ModelParamMapping)
- class certflow.controllers.correction_queue_controller.CorrectionQueueController(db_session=None, db_manager=None, use_shared=True)[源代码]¶
-
校正队列控制器 — 校正队列界面的业务调度层
- 参数:
use_shared (bool)
- correct_sale_plan(sale_plan_id, corrections, learn=True, recheck=True)[源代码]¶
校正一条黄标记录:写字段 + 完整性核对清 flag + upsert 字典自学习。