chore(shipping-notice): 统一货代发货生命周期阶段命名并优化全链路业务逻辑
This commit is contained in:
1 parent
5ef8329bd8
commit
4ec4e57005
183 files changed
+14653
-3936
No files matched your search
@@ -786,6 +786,19 @@ def reconcile_and_progress(
|
||||
# 用 case_after 替换引用,防止后续审计写入已失效对象。
|
||||
case = case_after
|
||||
user = db.session.get(User, int(user_id))
|
||||
# 归属 L3 歧义不是可继续处理的业务结果:调用方若收到普通 200 outcome,
|
||||
# 仍可能继续执行后续复用/推进。回滚与敏感审计完成后必须硬隔离,要求
|
||||
# 用户回到人工裁决面,而不是把不确定归属投影成可操作阶段。
|
||||
raise ValidationError(
|
||||
'Ambiguous task ownership requires manual adjudication',
|
||||
code='SHIPPING.RECONCILE_OWNERSHIP_ANOMALY',
|
||||
details={
|
||||
'hard_isolation': True,
|
||||
'case_no': str(case_after.case_no),
|
||||
'match': match_result,
|
||||
'user_action': user_action,
|
||||
},
|
||||
)
|
||||
|
||||
# [STEP 5] 写审计 + 幂等持久化(CaseEvent 保证下一次同 operation_id 可回返)
|
||||
_write_reconcile_audit_and_event(
|
||||
|
||||
Reference in new issue
Block a user