感知设备与视频设备接口更新,

develop
hanrenchun 10 months ago
parent dc20967b0a
commit e6a8349051

@ -48,7 +48,10 @@ public class DevopsDeviceInfoController extends BaseController {
for (DevopsDeviceStatus devopsDeviceStatus : list1) { for (DevopsDeviceStatus devopsDeviceStatus : list1) {
strings.add(devopsDeviceStatus.getGbsChannelNo()); strings.add(devopsDeviceStatus.getGbsChannelNo());
} }
List<DevopsDeviceInfo> list = devopsDeviceInfoService.lambdaQuery().in(DevopsDeviceInfo::getGbsChannelNo,strings).list(); QueryWrapper<DevopsDeviceInfo> devopsDeviceInfoQueryWrapper = new QueryWrapper<>(devopsDeviceInfo);
devopsDeviceInfoQueryWrapper.in("gbs_channel_no",strings);
List<DevopsDeviceInfo> list = devopsDeviceInfoService.list(devopsDeviceInfoQueryWrapper);
// List<DevopsDeviceInfo> list = devopsDeviceInfoService.lambdaQuery().in(DevopsDeviceInfo::getGbsChannelNo,strings).list();
ArrayList<DevopsDeviceInfo> devopsDeviceInfos = new ArrayList<>(); ArrayList<DevopsDeviceInfo> devopsDeviceInfos = new ArrayList<>();
for (DevopsDeviceInfo deviceInfo : list){ for (DevopsDeviceInfo deviceInfo : list){
deviceInfo.setIsOnline(1); deviceInfo.setIsOnline(1);

@ -49,7 +49,10 @@ public class DevopsVideoInfoController extends BaseController {
for (DevopsVideoStatus devopsVideoStatus : list1) { for (DevopsVideoStatus devopsVideoStatus : list1) {
strings.add(devopsVideoStatus.getGbsChannelNo()); strings.add(devopsVideoStatus.getGbsChannelNo());
} }
List<DevopsVideoInfo> list = devopsVideoInfoService.lambdaQuery().in(DevopsVideoInfo::getGbsChannelNo,strings).list(); QueryWrapper<DevopsVideoInfo> devopsVideoInfoQueryWrapper = new QueryWrapper<>(devopsVideoInfo);
devopsVideoInfoQueryWrapper.in("gbs_channel_no",strings);
List<DevopsVideoInfo> list = devopsVideoInfoService.list(devopsVideoInfoQueryWrapper);
// List<DevopsVideoInfo> list = devopsVideoInfoService.lambdaQuery().in(DevopsVideoInfo::getGbsChannelNo,strings).list();
ArrayList<DevopsVideoInfo> devopsVideoInfos = new ArrayList<>(); ArrayList<DevopsVideoInfo> devopsVideoInfos = new ArrayList<>();
for (DevopsVideoInfo devopsVideoInfo1 : list){ for (DevopsVideoInfo devopsVideoInfo1 : list){
devopsVideoInfo1.setIsOnline(1); devopsVideoInfo1.setIsOnline(1);

Loading…
Cancel
Save