diff --git a/app/task_db_func.py b/app/task_db_func.py index 79363f8..5eb16fc 100644 --- a/app/task_db_func.py +++ b/app/task_db_func.py @@ -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))