Browse Source

添加设备时候的操作

master
yangzongjia 2 years ago
parent
commit
2c2ba786f0
  1. 4
      yxt-supervise-monitor-biz/src/main/java/com/yxt/supervise/monitor/biz/device/YDeviceService.java

4
yxt-supervise-monitor-biz/src/main/java/com/yxt/supervise/monitor/biz/device/YDeviceService.java

@ -95,7 +95,7 @@ public class YDeviceService extends ServiceImpl<YDeviceMapper, Device> {
queryWrapper.eq("type", deviceType); queryWrapper.eq("type", deviceType);
} }
queryWrapper.eq("isDelete", 0); queryWrapper.eq("isDelete", 0);
if(ckId != null){ if (ckId != null) {
queryWrapper.eq("ckId", ckId); queryWrapper.eq("ckId", ckId);
} }
queryWrapper.isNotNull("status"); queryWrapper.isNotNull("status");
@ -214,7 +214,7 @@ public class YDeviceService extends ServiceImpl<YDeviceMapper, Device> {
ResultBean rb = ResultBean.fireSuccess(); ResultBean rb = ResultBean.fireSuccess();
if ("1".equals(device.getType())) { //摄像头 if ("1".equals(device.getType())) { //摄像头
Device nvrDevice = this.getById(device.getNvrId()); Device nvrDevice = this.getById(device.getNvrId());
device.setNvrCode(nvrDevice.getVCode()); device.setNvrCode(nvrDevice.getNvrCode());
device.setNvrSerial(nvrDevice.getSerialNumber()); device.setNvrSerial(nvrDevice.getSerialNumber());
device.setCkId(nvrDevice.getCkId()); device.setCkId(nvrDevice.getCkId());
} }

Loading…
Cancel
Save