Commit e529b247 authored by lizehua's avatar lizehua

修改查询数据sql

parent a8eb55c8
......@@ -502,19 +502,23 @@
ORDER BY ala.update_date DESC
limit 0,5
</select>
<select id="getEquipStatusTop5" resultType="com.yeejoin.amos.fas.business.bo.SafetyExecuteBo">
SELECT
fed.id,
fed.eq_point_name label,
fed.e_value status,
fed.create_date changeDate
wlesi.id,
wlesi.`value` status,
wlesi.create_date changeDate,
CONCAT(wlei.group_name,wlei.name) label
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
fed.org_code = #{orgCode} OR fed.org_code like CONCAT(#{orgCode},'-%')
ORDER BY fed.create_date DESC
limit 0,5
wlesi.id=#{orgCode}
and (wlesi.`value` = 'true'
OR wlesi.`value` = 'false')
ORDER BY wlesi.create_date DESC
limit 0,5
</select>
<select id="getPintsByType" resultType="hashmap">
......
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