feat(file-check): 新增文件检核相关 API 和工具,替换 RoHS 检核功能
This commit is contained in:
1 parent
fa0cdee8df
commit
24310b63b3
35 files changed
+3066
-659
No files matched your search
@@ -5,7 +5,7 @@ from typing import Any, Callable
|
||||
|
||||
from flask import current_app, has_app_context
|
||||
|
||||
from app.services.rohs_check import RoHSCheckService
|
||||
from app.services.file_check import FileCheckService
|
||||
|
||||
try:
|
||||
import pyodbc # type: ignore
|
||||
@@ -213,7 +213,7 @@ def _run_check_job_loop(
|
||||
progress_run.failed_count = failed_count
|
||||
progress_run.skipped_count = skipped_count
|
||||
summary = dict(progress_run.response_summary_json or {})
|
||||
summary["rohs_judgement"] = dict(judgement_stats)
|
||||
summary["file_judgement"] = dict(judgement_stats)
|
||||
if current_step:
|
||||
summary["current_step"] = dict(current_step)
|
||||
progress_run.response_summary_json = summary
|
||||
@@ -316,7 +316,7 @@ def _run_check_job_loop(
|
||||
t_dify = _ts()
|
||||
try:
|
||||
_set_current_step("call_dify", row_id_value)
|
||||
dify_res = RoHSCheckService.evaluate(
|
||||
dify_res = FileCheckService.evaluate(
|
||||
agent=agent,
|
||||
run_no=run_no,
|
||||
record=record_text,
|
||||
|
||||
Reference in new issue
Block a user