1.新增测试项查询接口
This commit is contained in:
@@ -150,4 +150,10 @@ public class WlRecord extends BaseEntity {
|
|||||||
*/
|
*/
|
||||||
private String gcDataPath;
|
private String gcDataPath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 数据类型(Primary:一次值 Secondary:二次值)
|
||||||
|
*/
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String dataLevel;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -49,5 +49,5 @@ public interface WlRecordMapper extends BaseMapper<WlRecord> {
|
|||||||
|
|
||||||
List<CsLedgerVO> getAllLine(@Param("devId") String devId);
|
List<CsLedgerVO> getAllLine(@Param("devId") String devId);
|
||||||
|
|
||||||
List<WlRecord> getWlAssByWlId(String wlId);
|
List<WlRecord> getWlAssByWlId(@Param("wlId") String wlId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -95,6 +95,21 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getWlAssByWlId" resultType="com.njcn.csdevice.pojo.po.WlRecord">
|
<select id="getWlAssByWlId" resultType="com.njcn.csdevice.pojo.po.WlRecord">
|
||||||
|
SELECT
|
||||||
|
a.*,c.data_level as dataLevel
|
||||||
|
FROM
|
||||||
|
wl_record a
|
||||||
|
inner join cs_line b on a.line_id = b.line_id
|
||||||
|
inner join cs_data_set c on b.data_set_id = c.id
|
||||||
|
WHERE
|
||||||
|
a.type = 1 and
|
||||||
|
a.id IN (SELECT data_id FROM wl_record_test_data WHERE test_item_id = #{wlId} )
|
||||||
|
UNION
|
||||||
|
SELECT
|
||||||
|
a.*,null as dataLevel
|
||||||
|
FROM
|
||||||
|
wl_record a
|
||||||
|
WHERE
|
||||||
|
a.id = #{wlId}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
@@ -61,6 +61,7 @@ import java.time.LocalDateTime;
|
|||||||
import java.time.ZoneOffset;
|
import java.time.ZoneOffset;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
import java.util.function.Function;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
@@ -642,7 +643,7 @@ public class WlRecordServiceImpl extends ServiceImpl<WlRecordMapper, WlRecord> i
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<WlRecord> getWlAssByWlId(String wlId) {
|
public List<WlRecord> getWlAssByWlId(String wlId) {
|
||||||
return this.baseMapper.getDataRecordByTestId(wlId,0);
|
return this.baseMapper.getWlAssByWlId(wlId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user