Commit 7c4d770d authored by lizehua's avatar lizehua

首页火灾告警

parent 873089af
...@@ -484,18 +484,17 @@ ...@@ -484,18 +484,17 @@
</select> </select>
<select id="getFireAlarmTop5" resultType="com.yeejoin.amos.fas.business.bo.SafetyExecuteBo"> <select id="getFireAlarmTop5" resultType="com.yeejoin.amos.fas.business.bo.SafetyExecuteBo">
select SELECT
ala.id, ala.id,
ala.equipment_specific_id as pointId, ala.equipment_specific_id AS pointId,
equ.code, 'monitorEquipment' AS type,
ala.equipment_specific_name as label, spe.CODE,
ala.update_date as changeDate ala.equipment_specific_index_name,
from CONCAT( ala.equipment_specific_index_name, '(', ala.equipment_specific_name, ')' ) AS label,
wl_equipment_specific_alarm as ala ala.update_date AS changeDate
left join wl_equipment_specific as spe on ala.equipment_specific_id = spe.id FROM
left join wl_equipment_detail as det on spe.equipment_detail_id = det.id wl_equipment_specific_alarm AS ala
left join wl_equipment as equ on equ.id = det.equipment_id LEFT JOIN wl_equipment_specific AS spe ON ala.equipment_specific_id = spe.id
left join wl_equipment_category as cate on equ.category_id = cate.id
WHERE ala.status = true WHERE ala.status = true
AND (ala.org_code = #{orgCode} OR ala.org_code like CONCAT(#{orgCode},'-%')) AND (ala.org_code = #{orgCode} OR ala.org_code like CONCAT(#{orgCode},'-%'))
AND ala.type = 'FIREALARM' AND ala.type = 'FIREALARM'
......
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