Commit e9f8bb7e by 夏超

[fix] 修改优先级筛选

parent 4f051f05
......@@ -79,6 +79,7 @@ class InheritRokeWorkstationProductionTask(RokeWorkstationProductionTask):
and process_id in ({" , ".join([f"{v}" for v in process_list])})
and state = '未完工'
and repair_task_id is not null {f''' and code ilike '%{search_code}%' ''' if search_code else ""}
{f''' and priority = '{priority}' ''' if priority else ""}
group by id
) as task_repair_work
ORDER BY create_date desc
......@@ -102,6 +103,7 @@ class InheritRokeWorkstationProductionTask(RokeWorkstationProductionTask):
and process_id in ({" , ".join([f"{v}" for v in process_list])})
and state = '未完工'
and repair_task_id is not null {f''' and code ilike '%{search_code}%' ''' if search_code else ""}
{f''' and priority = '{priority}' ''' if priority else ""}
group by id
) as task_repair_work
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment