修复路口管家任务管理用户信息异常问题

This commit is contained in:
wangxu 2026-05-13 18:02:45 +08:00
parent ec97175ae9
commit 64c6b009d8
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class TaskDbHelper(TableDbHelperBase):
return tasks[0]
def query_task_executor(self, nodeid, area_id):
sql_query = "select user_name, userno from user.user where userno in (select userno from user.area_user where nodeid = '%s' and area_id = %s) and department = '信号调优团队'" % (nodeid, area_id)
sql_query = "select user_name, userno from user.user where userno in (select userno from user.area_user where nodeid = '%s' and area_id = %s) and department = '信号调优团队' and state != 1" % (nodeid, area_id)
executors = self.do_select(sql_query)
if len(executors) <= 0:
logging.error('query_task_executor is null! %s' % (sql_query))