1.新增测试项查询接口
This commit is contained in:
@@ -96,7 +96,7 @@
|
|||||||
|
|
||||||
<select id="getWlAssByWlId" resultType="com.njcn.csdevice.pojo.po.WlRecord">
|
<select id="getWlAssByWlId" resultType="com.njcn.csdevice.pojo.po.WlRecord">
|
||||||
SELECT
|
SELECT
|
||||||
a.*,c.data_level as dataLevel
|
a.id,a.start_time,a.end_time,a.line_id,a.type,c.data_level as dataLevel,b.ct_ratio as ct,b.pt_ratio as pt
|
||||||
FROM
|
FROM
|
||||||
wl_record a
|
wl_record a
|
||||||
inner join cs_line b on a.line_id = b.line_id
|
inner join cs_line b on a.line_id = b.line_id
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
a.id IN (SELECT data_id FROM wl_record_test_data WHERE test_item_id = #{wlId} )
|
a.id IN (SELECT data_id FROM wl_record_test_data WHERE test_item_id = #{wlId} )
|
||||||
UNION
|
UNION
|
||||||
SELECT
|
SELECT
|
||||||
a.*,null as dataLevel
|
a.id,a.start_time,a.end_time,a.line_id,a.type,null as dataLevel,(a.pt/a.pt1) as pt,(a.ct/a.ct1) as ct
|
||||||
FROM
|
FROM
|
||||||
wl_record a
|
wl_record a
|
||||||
WHERE
|
WHERE
|
||||||
|
|||||||
Reference in New Issue
Block a user