Commit 3d04ec47 by lijingjing

统计问题修改

parent a95959d2
......@@ -193,7 +193,7 @@
i.ID = ii.entrust_sample_item_id
AND i.deleted = 0
AND ii.deleted = 0
and ii.test_value is not null and is_numeric(ii.test_value)
and ii.test_value is not null
GROUP BY i.company_id,i.entrust_sample_id
)
SELECT
......@@ -275,7 +275,7 @@
and ii.name like '%电解质-%'
AND i.deleted = 0
AND ii.deleted = 0
and ii.test_value is not null and is_numeric(ii.test_value)
and ii.test_value is not null
GROUP BY i.company_id,i.entrust_sample_id
)
SELECT
......@@ -358,7 +358,7 @@
AND I.TESTER_ID = u.USER_ID
AND i.deleted = 0
AND ii.deleted = 0
AND ii.test_value is not null and is_numeric(ii.test_value)
AND ii.test_value is not null
AND EXISTS (
select 1 from entrust_sample s where s.id = i.entrust_sample_id and s.deleted = 0
and s.name like '%磷生铁%'
......
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