Commit a662252d authored by tangwei's avatar tangwei

修改巡检bug

parent 3bd59d28
...@@ -263,6 +263,9 @@ ...@@ -263,6 +263,9 @@
pt.user_dept userDept pt.user_dept userDept
FROM FROM
p_plan_task pt p_plan_task pt
LEFT JOIN p_plan_task_detail b
ON pt.id = b.task_no
where b.task_no is not null
INNER JOIN p_plan p ON pt.plan_id = p.id INNER JOIN p_plan p ON pt.plan_id = p.id
) a ) a
<include refid="plan-task-app-where"/> <include refid="plan-task-app-where"/>
...@@ -299,7 +302,10 @@ ...@@ -299,7 +302,10 @@
pt.user_dept userDept pt.user_dept userDept
FROM FROM
p_plan_task pt p_plan_task pt
LEFT JOIN p_plan_task_detail b
ON pt.id = b.task_no
INNER JOIN p_plan p ON pt.plan_id = p.id INNER JOIN p_plan p ON pt.plan_id = p.id
where b.task_no is not null
) a ) a
<include refid="plan-task-app-where"/> <include refid="plan-task-app-where"/>
</select> </select>
......
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