Commit ae820c00 by lijingjing

修改获取检测项目检测值问题;

parent 46a262c7
......@@ -70,7 +70,7 @@
select
i.id "itemId",i.name "itemName",i.standard,q.judge_standard,
ii.id,ii.name,ii.main_type,ii.small_type,ii.unit,ii.status,ii.progress,ii.company_id,ii.uid,ii.ctime,ii.lid,ii.ltime,ii.deleted,ii.entrust_sample_item_id,
x.recheck_id, (case when x.test_value is not null then ii.test_value else x.test_value end) "test_value"
x.recheck_id, (case when x.test_value is null then ii.test_value else x.test_value end) "test_value"
from entrust_sample_item_index ii
JOIN entrust_sample_item i ON i.ID = ii.entrust_sample_item_id AND i.deleted = 0
LEFT JOIN qualification q on q.name = i.name and q.deleted = 0
......
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