feat(regulatory): 新增法规核查模型与工作流通用字段
This commit is contained in:
@@ -112,7 +112,14 @@ def create_file_summary_batch(
|
||||
attachment.save(update_fields=["upload_status"])
|
||||
|
||||
for code, name, _skill_name in NODE_DEFINITIONS:
|
||||
WorkflowNodeRun.objects.create(batch=batch, node_code=code, node_name=name)
|
||||
WorkflowNodeRun.objects.create(
|
||||
batch=batch,
|
||||
workflow_type="file_summary",
|
||||
workflow_batch_id=batch.pk,
|
||||
node_group="file_summary",
|
||||
node_code=code,
|
||||
node_name=name,
|
||||
)
|
||||
|
||||
record_event(batch, "workflow_created", {"batch_id": batch.pk, "batch_no": batch.batch_no})
|
||||
logger.info(
|
||||
|
||||
Reference in New Issue
Block a user