Merge pull request #783 from StreamLuna/wvp-28181-2.0

fix: 根据国标设备编号查询设备没有返回通道数
pull/786/head
648540858 2023-03-21 17:23:38 +08:00 committed by GitHub
commit 3e4d2b682c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);