|
|
|
@ -49,29 +49,24 @@ public class DevopsDeviceInfoController extends BaseController {
|
|
|
|
|
for (DevopsDeviceStatus devopsDeviceStatus : list1) {
|
|
|
|
|
strings.add(devopsDeviceStatus.getGbsChannelNo());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// LambdaQueryWrapper<DevopsDeviceInfo> devopsDeviceInfoQueryWrapper = new LambdaQueryWrapper<>(devopsDeviceInfo);
|
|
|
|
|
// devopsDeviceInfoQueryWrapper.in(DevopsDeviceInfo::getGbsChannelNo,strings);
|
|
|
|
|
// List<DevopsDeviceInfo> list = devopsDeviceInfoService.list(devopsDeviceInfoQueryWrapper);
|
|
|
|
|
List<DevopsDeviceInfo> list = devopsDeviceInfoService.lambdaQuery().in(DevopsDeviceInfo::getGbsChannelNo,strings).list();
|
|
|
|
|
ArrayList<DevopsDeviceInfo> devopsDeviceInfos = new ArrayList<>();
|
|
|
|
|
for (DevopsDeviceInfo deviceInfo : list){
|
|
|
|
|
if (devopsDeviceInfo.getIsDoorwayVideo() == null) {
|
|
|
|
|
deviceInfo.setIsOnline(1);
|
|
|
|
|
devopsDeviceInfos.add(deviceInfo);
|
|
|
|
|
}
|
|
|
|
|
if (devopsDeviceInfo.getIsDoorwayVideo() == 1 && deviceInfo.getIsDoorwayVideo() == 1){
|
|
|
|
|
deviceInfo.setIsOnline(1);
|
|
|
|
|
devopsDeviceInfos.add(deviceInfo);
|
|
|
|
|
}
|
|
|
|
|
if (devopsDeviceInfo.getIsDoorwayVideo() == 3 && deviceInfo.getIsDoorwayVideo() == 3){
|
|
|
|
|
deviceInfo.setIsOnline(1);
|
|
|
|
|
devopsDeviceInfos.add(deviceInfo);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return getDataTable(devopsDeviceInfos);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("/type")
|
|
|
|
|
@ApiOperation("查询智能设备沿海与海堤线")
|
|
|
|
|
public TableDataInfo<DevopsDeviceInfo> levelList(DevopsDeviceInfo devopsDeviceInfo){
|
|
|
|
|
startPage();
|
|
|
|
|
List<DevopsDeviceInfo> list = devopsDeviceInfoService.list(new QueryWrapper<>(devopsDeviceInfo));
|
|
|
|
|
return getDataTable(list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@PostMapping
|
|
|
|
|
@ApiOperation("新增智能设备信息表")
|
|
|
|
|
@Log(title = "智能设备信息表", businessType = BusinessType.INSERT)
|
|
|
|
|