Commit df2cb5ae authored by maoying's avatar maoying

修改三维初始化设备巡查状态显示问题

parent 4d5490cc
......@@ -825,6 +825,7 @@ public class RiskSourceServiceImpl implements IRiskSourceService {
specificIndexVo.setName(name);
specificIndexVo.setCode(protalData.getPointNo());
specificIndexVo.setType("patrol");
specificIndexVo.setTypeCode("patrol");
specificIndexVo.setNameKey("patrol");
if ("2".equals(nodeState) || "3".equals(nodeState)) {
specificIndexVo.setValue("true");
......
......@@ -70,10 +70,12 @@
wes.realtime_iot_index_key AS name_key,
wes.realtime_iot_index_name AS equipmentIndexName,
wes.realtime_iot_index_value AS `value`,
'equip' AS type
'equip' AS type,
ei.type_code as typeCode,
wes.iot_code as iotCode
FROM
wl_equipment_specific wes
LEFT JOIN wl_equipment_index ei ON ei.id = wes.realtime_iot_es_index_id
LEFT JOIN wl_equipment_index ei ON ei.id = wes.realtime_iot_index_id
WHERE
ei.is_iot = 1
<if test="value != null and value != ''">
......
......@@ -26,6 +26,7 @@
p.point_no AS `code`,
'patrol' AS type,
'patrol' AS nameKey,
'patrol' AS typeCode,
CASE
WHEN p.`status` = '2' THEN
'true'
......
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