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

This commit is contained in:
StreamLuna 2023-03-20 10:58:44 +08:00
parent 7e01babe80
commit 224c6b8af7

View File

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