映射表绑定设备列表bug修改
This commit is contained in:
parent
bb99330cbf
commit
5ddf1ddc5d
@ -105,7 +105,10 @@
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getBindDeviceByLink" resultMap="EquipmentMap">
|
<select id="getBindDeviceByLink" resultMap="EquipmentMap">
|
||||||
select t.id ,t."name",t.iot_model_id,t.iot_addr from sys_equipment t where t.id in (select distinct equipment_id from sys_imptabmapping where link_id =#{linkId})
|
select se.id ,se."name",se.iot_model_id,se.iot_addr,min( imp.porder) as porder from sys_imptabmapping imp
|
||||||
|
left join sys_equipment se on imp.equipment_id = se.id
|
||||||
|
where link_id = #{linkId}
|
||||||
|
group by se.id ,se."name",se.iot_model_id,se.iot_addr order by porder
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<delete id="deleteMappingByLinkId">
|
<delete id="deleteMappingByLinkId">
|
||||||
|
Loading…
Reference in New Issue
Block a user