task65-动态获取站点下设备类型
This commit is contained in:
@ -216,7 +216,12 @@
|
||||
and device_category = #{deviceCategory}
|
||||
</select>
|
||||
|
||||
<select id="getDeviceIdsBySiteIdAndCategory" resultType="java.lang.String">
|
||||
select DISTINCT device_id from ems_devices_setting where site_id = #{siteId} and device_category = #{deviceCategory}
|
||||
<select id="getAllDeviceCategoryBySiteId" resultType="java.lang.String">
|
||||
select DISTINCT device_category
|
||||
from ems_devices_setting
|
||||
where 1=1
|
||||
<if test="siteId !=null and siteId !=''">
|
||||
and site_id = #{siteId}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user