fix: 修改部署报错
This commit is contained in:
1 parent
d0955d25fa
commit
f634b67f82
2 files changed
+2
-3
No files matched your search
@@ -18,7 +18,6 @@ from sqlalchemy import func, desc
|
|||||||
from openpyxl import load_workbook
|
from openpyxl import load_workbook
|
||||||
from app.services.dify import DifyService
|
from app.services.dify import DifyService
|
||||||
from app.services.integration_api import IntegrationApiService
|
from app.services.integration_api import IntegrationApiService
|
||||||
from app.services.oa_sqlserver import OASQLServerService
|
|
||||||
from app.decorators import require_agent_permission
|
from app.decorators import require_agent_permission
|
||||||
from app.models import Agent, ChatLog, Feedback
|
from app.models import Agent, ChatLog, Feedback
|
||||||
from app import db
|
from app import db
|
||||||
@@ -348,6 +347,7 @@ def get_oa_employees():
|
|||||||
page_size = 20
|
page_size = 20
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
from app.services.oa_sqlserver import OASQLServerService
|
||||||
result = OASQLServerService.search_employees(keyword, page, page_size)
|
result = OASQLServerService.search_employees(keyword, page, page_size)
|
||||||
return jsonify(result)
|
return jsonify(result)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
|||||||
@@ -9,8 +9,6 @@ import xml.etree.ElementTree as ET
|
|||||||
import requests
|
import requests
|
||||||
from flask import current_app
|
from flask import current_app
|
||||||
|
|
||||||
from app.services.oa_sqlserver import OASQLServerService
|
|
||||||
|
|
||||||
|
|
||||||
SOAP_ENV_NS = 'http://schemas.xmlsoap.org/soap/envelope/'
|
SOAP_ENV_NS = 'http://schemas.xmlsoap.org/soap/envelope/'
|
||||||
SERVICE_NS = 'webservices.services.weaver.com.cn'
|
SERVICE_NS = 'webservices.services.weaver.com.cn'
|
||||||
@@ -156,6 +154,7 @@ class OALeaveWorkflowService:
|
|||||||
raise OALeaveWorkflowError(f'缺少{role_label}姓名,无法匹配 OA 用户。')
|
raise OALeaveWorkflowError(f'缺少{role_label}姓名,无法匹配 OA 用户。')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
from app.services.oa_sqlserver import OASQLServerService
|
||||||
matched = OASQLServerService.get_employee_by_name_and_workcode(real_name, employee_id)
|
matched = OASQLServerService.get_employee_by_name_and_workcode(real_name, employee_id)
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
raise OALeaveWorkflowError(f'查询{role_label} OA 用户失败:{exc}') from exc
|
raise OALeaveWorkflowError(f'查询{role_label} OA 用户失败:{exc}') from exc
|
||||||
|
|||||||
Reference in new issue
Block a user