修改设备类型

This commit is contained in:
2025-11-20 10:11:14 +08:00
parent 76c11fff15
commit 2376a3b42a
3 changed files with 26 additions and 0 deletions

View File

@ -497,4 +497,11 @@
FROM device a left join device_type b on a.device_type = b.id where b.communication_mode in (0, 2) and a.online_status in (1,2)
</select>
<!-- 根据设备类型ID查询设备数量 -->
<select id="countByDeviceTypeId" resultType="int">
SELECT COUNT(*)
FROM device
WHERE device_type = #{deviceTypeId}
</select>
</mapper>