Commit 172ef7aa authored by 李秀明's avatar 李秀明

feat: 消防水源接口新增返回字段

parent 0fb01e9a
......@@ -2587,19 +2587,24 @@
wes.value_label valueLabel,
wes.realtime_iot_es_index_id realtimeIotSpecificIndexId,
wes.realtime_iot_index_update_date realtiemIotIndexUpdateDate,
wes.realtime_iot_index_id realtimeIotIndexId
wes.realtime_iot_index_id realtimeIotIndexId,
wes.equip_status equipStatus,
ec.name categoryName
FROM
wl_equipment_specific wes
<where>
<if test="list != null and list.length > 0">
<foreach collection="list" item="item" index="index" open="(" close=")" separator="OR">
wes.id = #{item}
</foreach>
</if>
<if test="bizOrgCode != null and bizOrgCode != ''">
and wes.biz_org_code LIKE concat(#{bizOrgCode}, '%')
</if>
</where>
LEFT JOIN wl_equipment_detail wed ON wed.id = wes.equipment_detail_id
LEFT JOIN wl_equipment e ON e.id = wed.equipment_id
LEFT JOIN wl_equipment_category ec on ec.id = e.category_id
<where>
<if test="list != null and list.length > 0">
<foreach collection="list" item="item" index="index" open="(" close=")" separator="OR">
wes.id = #{item}
</foreach>
</if>
<if test="bizOrgCode != null and bizOrgCode != ''">
and wes.biz_org_code LIKE concat(#{bizOrgCode}, '%')
</if>
</where>
</select>
<select id="getListByCode" resultType="Map">
......@@ -2615,9 +2620,14 @@
wes.value_label valueLabel,
wes.realtime_iot_es_index_id realtimeIotSpecificIndexId,
wes.realtime_iot_index_update_date realtiemIotIndexUpdateDate,
wes.realtime_iot_index_id realtimeIotIndexId
wes.realtime_iot_index_id realtimeIotIndexId,
wes.equip_status equipStatus,
ec.name categoryName
FROM
wl_equipment_specific wes
wl_equipment_specific wes
LEFT JOIN wl_equipment_detail wed ON wed.id = wes.equipment_detail_id
LEFT JOIN wl_equipment e ON e.id = wed.equipment_id
LEFT JOIN wl_equipment_category ec on ec.id = e.category_id
<where>
<if test="code != null and code != ''">
wes.equipment_code = #{code}
......
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