Commit 5309270c by 夏超

[fix] 返修单生产工单产品问题

parent fa35b8bb
......@@ -63,7 +63,7 @@ class JzjxInheritRokeWorkstationProductionTask(RokeWorkstationProductionTask):
count_sql = f"""
SELECT count(id)
FROM (
{f'''SELECT roke_production_task.id, 'task' as "type", roke_production_task.create_date
{f'''SELECT roke_production_task.id
FROM roke_production_task LEFT JOIN roke_work_order on roke_work_order.task_id = roke_production_task.id
WHERE roke_work_order.id in ({" , ".join([f"{v}" for v in work_order.ids])})
and roke_production_task.state in ('未完工', '暂停')
......
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