( SELECT GROUP_CONCAT( url ) FROM wl_upload_file WHERE file_type = 'image' AND object_type = 'equipment' AND object_id = ed.id ) AS img,
( SELECT GROUP_CONCAT( url ) FROM wl_upload_file WHERE file_type = 'image' AND object_type = 'equipment' AND object_id = ed.id ) AS img,
es.iot_code AS iotcode,
es.iot_code AS iotcode,
'' AS stationname,
NULL AS stationname,
'' AS stationcode,
NULL AS stationcode,
ws.source_id AS buildid,
ws.source_id AS buildid,
es.system_id AS fightingsystemids,
es.system_id AS fightingsystemids,
TRIM(CONCAT_WS(' ',ws.full_name,sd.description)) AS position,
TRIM(CONCAT_WS(' ',ws.full_name,sd.description)) AS position,
...
@@ -1848,7 +1848,7 @@
...
@@ -1848,7 +1848,7 @@
`si`.`equipment_index_key` AS `equipmentIndexKey`,
`si`.`equipment_index_key` AS `equipmentIndexKey`,
(CASE si.`value` WHEN 'true' THEN '是' WHEN 'false' THEN '否' ELSE concat(si.`value`, IFNULL(wei.unit, '')) END) AS `value`,
(CASE si.`value` WHEN 'true' THEN '是' WHEN 'false' THEN '否' ELSE concat(si.`value`, IFNULL(wei.unit, '')) END) AS `value`,
-- (CONCAT((SELECT field_value FROM wl_form_instance_equip fie WHERE fie.instance_id = s.id AND fie.field_name like 'min%'),'-',(SELECT field_value FROM wl_form_instance_equip fie WHERE fie.instance_id = s.id AND fie.field_name like 'max%'), IFNULL(wei.unit, ''))) AS standardValue,
-- (CONCAT((SELECT field_value FROM wl_form_instance_equip fie WHERE fie.instance_id = s.id AND fie.field_name like 'min%'),'-',(SELECT field_value FROM wl_form_instance_equip fie WHERE fie.instance_id = s.id AND fie.field_name like 'max%'), IFNULL(wei.unit, ''))) AS standardValue,
'' AS standardValue,
NULL AS standardValue,
si.update_date AS `time`,
si.update_date AS `time`,
`si`.`equipment_index_name` AS `equipmentIndexName`,
`si`.`equipment_index_name` AS `equipmentIndexName`,