mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-27 07:27:49 +08:00
bug fixed:
API: /api/device/query/devices/{deviceId}
修复返回值中channelCount属性常为0的问题
This commit is contained in:
parent
3955e6ed53
commit
b723fc5252
@ -13,7 +13,7 @@ import java.util.List;
|
||||
@Repository
|
||||
public interface DeviceMapper {
|
||||
|
||||
@Select("SELECT * FROM device WHERE deviceId = #{deviceId}")
|
||||
@Select("SELECT *, (SELECT count(0) FROM device_channel WHERE deviceId=device.deviceId) as channelCount FROM device WHERE deviceId = #{deviceId}")
|
||||
Device getDeviceByDeviceId(String deviceId);
|
||||
|
||||
@Insert("INSERT INTO device (" +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user