Merge branch 'dev' into runny827

feat(training): 新增精益培训视频与周任务管理

# Conflicts:
#	backend/app/models/__init__.py
This commit is contained in:
runny committed 2026-09-08 18:30:09 +08:00
1 parent 85d27e9ffa
commit 91b7233872
812 files changed
+73763 -18908

No files matched your search

@@ -225,15 +225,18 @@ def test_map_notice_to_processing_status_stage_domain_mapping():
map_notice_to_processing_status_stage,
)
# [BE-05] Notice 履约态由领域事实(step / 上传 Attempt / 导出 Artifact)派生,
# 不再读取已迁移下线的 Notice.upload_status / export_file_path 聚合字段。无 Attempt
# 与无 Artifact 时,停留在上传工作面只能由 current_step 提示导出(与 Step 7 上传阶段一致)。
uploaded = SimpleNamespace(
id=None,
current_step='', upload_status='uploaded', export_file_path=None,
current_step='step7_upload', upload_status='uploaded', export_file_path=None,
)
# 历史聚合字段没有预约单与成功 Attempt,不得直接进入完成。
assert map_notice_to_processing_status_stage(uploaded) == ('automating', 'freight_uploading')
waiting = SimpleNamespace(
current_step='', upload_status='pending', export_file_path='/x.xlsx',
current_step='step7_upload', upload_status='pending', export_file_path='/x.xlsx',
)
assert map_notice_to_processing_status_stage(waiting) == ('automating', 'freight_uploading')