单体电池-框架
This commit is contained in:
@ -133,4 +133,16 @@
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="getAllStackInfoBySiteId" parameterType="Long" resultType="java.util.Map">
|
||||
select id,device_name as deviceName from ems_devices_setting
|
||||
where id in (
|
||||
select distinct eb.device_id from ems_battery_stack eb where eb.site_id = #{siteId})
|
||||
</select>
|
||||
|
||||
<select id="getAllClusterInfoByStackId" parameterType="Long" resultType="java.util.Map">
|
||||
select id,device_name as deviceName
|
||||
from ems_devices_setting
|
||||
where id in (select distinct eb.device_id from ems_battery_cluster eb where eb.stack_device_id = #{stackDeviceId})
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user