From e6a83490513f9d72f8bfaba98e295405aefcecc9 Mon Sep 17 00:00:00 2001 From: hanrenchun Date: Sat, 6 Jan 2024 17:06:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=84=9F=E7=9F=A5=E8=AE=BE=E5=A4=87=E4=B8=8E?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E8=AE=BE=E5=A4=87=E6=8E=A5=E5=8F=A3=E6=9B=B4?= =?UTF-8?q?=E6=96=B0,?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../database/controller/DevopsDeviceInfoController.java | 5 ++++- .../ruoyi/database/controller/DevopsVideoInfoController.java | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/DevopsDeviceInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/DevopsDeviceInfoController.java index f18e7dc..5f3d87c 100644 --- a/gather-app/src/main/java/com/ruoyi/database/controller/DevopsDeviceInfoController.java +++ b/gather-app/src/main/java/com/ruoyi/database/controller/DevopsDeviceInfoController.java @@ -48,7 +48,10 @@ public class DevopsDeviceInfoController extends BaseController { for (DevopsDeviceStatus devopsDeviceStatus : list1) { strings.add(devopsDeviceStatus.getGbsChannelNo()); } - List list = devopsDeviceInfoService.lambdaQuery().in(DevopsDeviceInfo::getGbsChannelNo,strings).list(); + QueryWrapper devopsDeviceInfoQueryWrapper = new QueryWrapper<>(devopsDeviceInfo); + devopsDeviceInfoQueryWrapper.in("gbs_channel_no",strings); + List list = devopsDeviceInfoService.list(devopsDeviceInfoQueryWrapper); +// List list = devopsDeviceInfoService.lambdaQuery().in(DevopsDeviceInfo::getGbsChannelNo,strings).list(); ArrayList devopsDeviceInfos = new ArrayList<>(); for (DevopsDeviceInfo deviceInfo : list){ deviceInfo.setIsOnline(1); diff --git a/gather-app/src/main/java/com/ruoyi/database/controller/DevopsVideoInfoController.java b/gather-app/src/main/java/com/ruoyi/database/controller/DevopsVideoInfoController.java index ef5e8fb..828a6ab 100644 --- a/gather-app/src/main/java/com/ruoyi/database/controller/DevopsVideoInfoController.java +++ b/gather-app/src/main/java/com/ruoyi/database/controller/DevopsVideoInfoController.java @@ -49,7 +49,10 @@ public class DevopsVideoInfoController extends BaseController { for (DevopsVideoStatus devopsVideoStatus : list1) { strings.add(devopsVideoStatus.getGbsChannelNo()); } - List list = devopsVideoInfoService.lambdaQuery().in(DevopsVideoInfo::getGbsChannelNo,strings).list(); + QueryWrapper devopsVideoInfoQueryWrapper = new QueryWrapper<>(devopsVideoInfo); + devopsVideoInfoQueryWrapper.in("gbs_channel_no",strings); + List list = devopsVideoInfoService.list(devopsVideoInfoQueryWrapper); +// List list = devopsVideoInfoService.lambdaQuery().in(DevopsVideoInfo::getGbsChannelNo,strings).list(); ArrayList devopsVideoInfos = new ArrayList<>(); for (DevopsVideoInfo devopsVideoInfo1 : list){ devopsVideoInfo1.setIsOnline(1);