在线状态判断,用错变量
Device device = deviceService.getDeviceByDeviceId(deviceId); Assert.notNull(deviceId, "设备不存在"); Device device = deviceService.getDeviceByDeviceId(deviceId); Assert.notNull(device, "设备不存在");
This commit is contained in:
@@ -89,7 +89,7 @@ public class PlayController {
|
||||
Assert.notNull(channelId, "通道国标编号不可为NULL");
|
||||
// 获取可用的zlm
|
||||
Device device = deviceService.getDeviceByDeviceId(deviceId);
|
||||
Assert.notNull(deviceId, "设备不存在");
|
||||
Assert.notNull(device, "设备不存在");
|
||||
DeviceChannel channel = deviceChannelService.getOne(deviceId, channelId);
|
||||
Assert.notNull(channel, "通道不存在");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user