1.SRM数据库驱动调整

2.新增MSDS文件检核逻辑
This commit is contained in:
hugo committed 2026-05-19 19:32:18 +08:00
1 parent fb8189ef13
commit 09b5e62861
5 files changed
+530 -116

No files matched your search

@@ -11,7 +11,7 @@ from flask import current_app
from app import db
from app.models import ScheduleRun, ScheduleTask, User
from app.services.schedule import normalize_platform_api_path, resolve_schedule_executor
from app.services.schedule import normalize_platform_api_path, resolve_schedule_executor, resolve_schedule_header
from app.services.schedule.excel_service import export_schedule_result_excel
from app.services.schedule.mail_service import build_schedule_mail_html, send_schedule_mail
@@ -183,6 +183,7 @@ def run_task_now(task: ScheduleTask, *, trigger_type: str, triggered_by_user_id:
status = "partial_failed"
try:
header_order, header_labels = resolve_schedule_header(task.platform_api_path)
file_path, file_name, file_size = export_schedule_result_excel(
run_no=run.run_no,
summary={
@@ -194,6 +195,8 @@ def run_task_now(task: ScheduleTask, *, trigger_type: str, triggered_by_user_id:
},
details=details,
root_dir=str(current_app.config.get("SCHEDULE_EXCEL_STORAGE_ROOT") or "").strip(),
header_order=header_order,
header_labels=header_labels,
)
except Exception as excel_exc:
if current_app: