Commit e529b247 authored by lizehua's avatar lizehua

修改查询数据sql

parent a8eb55c8
...@@ -505,15 +505,19 @@ ...@@ -505,15 +505,19 @@
<select id="getEquipStatusTop5" resultType="com.yeejoin.amos.fas.business.bo.SafetyExecuteBo"> <select id="getEquipStatusTop5" resultType="com.yeejoin.amos.fas.business.bo.SafetyExecuteBo">
SELECT SELECT
fed.id, wlesi.id,
fed.eq_point_name label, wlesi.`value` status,
fed.e_value status, wlesi.create_date changeDate,
fed.create_date changeDate CONCAT(wlei.group_name,wlei.name) label
FROM FROM
f_fire_equipment_data fed wl_equipment_specific_index wlesi
LEFT JOIN wl_equipment_index wlei ON wlesi.equipment_index_id = wlei.id
left join wl_equipment_specific wles on wlesi.equipment_specific_id = wles.id
WHERE WHERE
fed.org_code = #{orgCode} OR fed.org_code like CONCAT(#{orgCode},'-%') wlesi.id=#{orgCode}
ORDER BY fed.create_date DESC and (wlesi.`value` = 'true'
OR wlesi.`value` = 'false')
ORDER BY wlesi.create_date DESC
limit 0,5 limit 0,5
</select> </select>
......
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