fix: 根据国标设备编号查询设备没有返回通道数

pull/783/head
StreamLuna 2023-03-20 10:58:44 +08:00
parent 782300452c
commit eb173b1b24
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ public interface DeviceMapper {
"asMessageChannel," + "asMessageChannel," +
"geoCoordSys," + "geoCoordSys," +
"treeType," + "treeType," +
"online" + "online," +
"(SELECT count(0) FROM device_channel WHERE deviceId=device.deviceId) as channelCount "+
" FROM device WHERE deviceId = #{deviceId}") " FROM device WHERE deviceId = #{deviceId}")
Device getDeviceByDeviceId(String deviceId); Device getDeviceByDeviceId(String deviceId);