feat(shipping): 实现订单批处理聊天聚合展示与优化后端逻辑
This commit is contained in:
1 parent
11cef575b4
commit
523b791c92
38 files changed
+2868
-414
No files matched your search
@@ -201,6 +201,9 @@ def handle_shipping_stp_auto_create(ctx: JobContext, payload: dict) -> None:
|
||||
extra['task_no'] = str(result.get('task_no') or '')
|
||||
if result.get('idempotent_replay'):
|
||||
extra['idempotent_replay'] = True
|
||||
if result.get('superseded'):
|
||||
extra['superseded'] = True
|
||||
extra['superseded_draft_version'] = result.get('superseded_draft_version')
|
||||
if result.get('auto_progress_status'):
|
||||
extra['auto_progress_status'] = str(result.get('auto_progress_status') or '')
|
||||
finish_job(
|
||||
@@ -238,6 +241,9 @@ def handle_shipping_stp_auto_create(ctx: JobContext, payload: dict) -> None:
|
||||
'details',
|
||||
}
|
||||
}
|
||||
nested_details = details.pop('details', None)
|
||||
if isinstance(nested_details, dict):
|
||||
details.update(nested_details)
|
||||
details.setdefault('payload_case_no', str(frozen.get('case_no') or ''))
|
||||
details.setdefault('payload_run_no', str(frozen.get('run_no') or ''))
|
||||
retryable, normalized, next_action = _classify_stp_job_result(
|
||||
|
||||
Reference in new issue
Block a user