refactor(in-transit-transfer): 行归属解耦、按行执行三层门禁并重构术语为匹配
- 行不迁移:匹配记录降级为评估留痕(scope/counts/hash 留痕不拦执行), 匹配/重查原地刷新行并续行级新鲜度(updated_at) - 执行改按行:POST /items/execute 三层门禁(行级新鲜度 TTL/文件版本对账/写前复查), Run 留痕不绑匹配记录;消失行 blocked_file_removed fail-closed 入异常池 - 恢复处理收敛为行级重查(batch-resume 删除);待处理池补齐匹配窗口字段, 排序改业务稳定键(收料日期→Invoice→created_at,操作不再引起跳位) - 首页待办看板四队列:可调拨明细/待恢复异常/已人工关闭/结果未知;「最近预检」移除; 收料日期默认 T-1 并加输入期限制;「重新查询 ERP」更名「重查」 - 术语重构 precheck→match:表 transfer_matchings、列 matching_id/matching_no/matching_hash、 API /matchings、单号前缀 MTG、状态值 prechecking→matching(迁移 rn1a2b3c4d5e6,模块未上线无兼容层) - 修复 integration_connector mapping 扇出嵌套丢行缺陷;对账结论:0 vs 30/40/36 系收料仓库映射曾指向错误账套 TGHX(已改 TGHX1),探针留档 backend/tmp - 测试:后端 in_transit_transfer+api+connector 393 passed;前端 chat 713 passed;build ✓
This commit is contained in:
1 parent
f9f5053f0b
commit
0cf3c24119
108 files changed
+3660
-2356
No files matched your search
@@ -94,7 +94,7 @@ def _event_hash_inputs(event: TransferAuditEvent) -> dict[str, Any]:
|
||||
"aggregate_type": event.aggregate_type,
|
||||
"aggregate_id": event.aggregate_id,
|
||||
"run_no": event.run_no,
|
||||
"precheck_no": event.precheck_no,
|
||||
"matching_no": event.matching_no,
|
||||
"invoice_no": event.invoice_no,
|
||||
"item_id": event.item_id,
|
||||
"attempt_no": event.attempt_no,
|
||||
@@ -124,7 +124,7 @@ def build_transfer_audit_event(
|
||||
aggregate_type: str,
|
||||
aggregate_id: str,
|
||||
run_no: str | None = None,
|
||||
precheck_no: str | None = None,
|
||||
matching_no: str | None = None,
|
||||
invoice_no: str | None = None,
|
||||
item_id: str | None = None,
|
||||
attempt_no: str | None = None,
|
||||
@@ -144,7 +144,7 @@ def build_transfer_audit_event(
|
||||
|
||||
Args:
|
||||
event_type / aggregate_type / aggregate_id: 事件类型与聚合对象。
|
||||
run_no / precheck_no / invoice_no / item_id / attempt_no: 业务关联。
|
||||
run_no / matching_no / invoice_no / item_id / attempt_no: 业务关联。
|
||||
actor_*: 操作者(user/worker/schedule/admin/rpa)。
|
||||
request_id / operation_id: 关联上下文。
|
||||
before / after: 前后快照(自动脱敏并计算 Hash)。
|
||||
@@ -159,7 +159,7 @@ def build_transfer_audit_event(
|
||||
aggregate_type=aggregate_type,
|
||||
aggregate_id=aggregate_id,
|
||||
run_no=run_no,
|
||||
precheck_no=precheck_no,
|
||||
matching_no=matching_no,
|
||||
invoice_no=invoice_no,
|
||||
item_id=item_id,
|
||||
attempt_no=attempt_no,
|
||||
|
||||
Reference in new issue
Block a user