Commit 18f56a4e authored by maoying's avatar maoying

修改三维屏故障初始化接口

parent f07f00f7
...@@ -61,9 +61,10 @@ ...@@ -61,9 +61,10 @@
</select> </select>
<select id="getInitAlarm" resultType="com.yeejoin.amos.fas.business.vo.EquipmentSpecificIndexVo"> <select id="getInitAlarm" resultType="com.yeejoin.amos.fas.business.vo.EquipmentSpecificIndexVo">
SELECT SELECT
wed.id, wes.id,
wes.id as equipmentSpecificId,
wed.`name`, wed.`name`,
wed.`code`, wes.`code`,
wei.name_key, wei.name_key,
wei.`name` AS equipmentIndexName, wei.`name` AS equipmentIndexName,
wsi.`value`, wsi.`value`,
...@@ -73,7 +74,8 @@ ...@@ -73,7 +74,8 @@
LEFT JOIN wl_equipment_index wei ON wsi.equipment_index_id = wei.id LEFT JOIN wl_equipment_index wei ON wsi.equipment_index_id = wei.id
LEFT JOIN wl_equipment_specific wes ON wsi.equipment_specific_id = wes.id LEFT JOIN wl_equipment_specific wes ON wsi.equipment_specific_id = wes.id
LEFT JOIN wl_equipment_detail wed ON wed.id = wes.equipment_detail_id LEFT JOIN wl_equipment_detail wed ON wed.id = wes.equipment_detail_id
<where> where
wei.is_iot = 1
<if test="value != null and value != ''"> <if test="value != null and value != ''">
AND wsi.`value` = #{value} AND wsi.`value` = #{value}
</if> </if>
...@@ -83,7 +85,6 @@ ...@@ -83,7 +85,6 @@
wei.name_key = #{item} wei.name_key = #{item}
</foreach> </foreach>
</if> </if>
</where>
GROUP BY GROUP BY
wsi.equipment_specific_id wsi.equipment_specific_id
ORDER BY ORDER BY
......
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