Commit 90558346 authored by tianbo's avatar tianbo

bugfix:大屏两个规定任务列表筛选-检查状态从taskDetail表取值

parent 1e7d9213
......@@ -25,11 +25,12 @@
when 0 THEN '尚未巡检'
when 1 THEN '按时完成'
else '超时漏检' END) as statusName,
pc.is_ok isOk,
(case pc.is_ok
b.status isOk,
(case b.status
when 0 THEN '未开始'
when 1 THEN '合格'
when 2 THEN '不合格'
else '漏检' END) as isOkName
when 3 THEN '漏检' END) as isOkName
FROM p_plan_task_detail b
LEFT JOIN p_check pc ON pc.plan_task_detail_id = b.id
LEFT JOIN p_plan_task a ON a.id = b.task_no
......
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