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

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

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