From 00634e17f29c52250b3744f964a99cf27805e59d Mon Sep 17 00:00:00 2001 From: zzc <1278921369@qq.com> Date: Mon, 25 Nov 2024 21:29:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=92=8C=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AE=BE=E5=A4=87=E4=B8=8D=E5=9C=A8=E7=BA=BF?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/dromara/web/service/impl/EqEquipmentServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-admin/src/main/java/org/dromara/web/service/impl/EqEquipmentServiceImpl.java b/ruoyi-admin/src/main/java/org/dromara/web/service/impl/EqEquipmentServiceImpl.java index d5e733be6..d4cb6ea18 100644 --- a/ruoyi-admin/src/main/java/org/dromara/web/service/impl/EqEquipmentServiceImpl.java +++ b/ruoyi-admin/src/main/java/org/dromara/web/service/impl/EqEquipmentServiceImpl.java @@ -202,7 +202,7 @@ public class EqEquipmentServiceImpl implements IEqEquipmentService { @Override public String operate(EqDeviceCmdBo bo) { String cmd = ""; - if (checkOnline(bo.getEquipmentCode())) throw new RuntimeException("设备不在线"); + if (!checkOnline(bo.getEquipmentCode())) throw new RuntimeException("设备不在线"); int operateType = bo.getOperateType(); switch (operateType){ case 1: cmd = DeviceCtlCmd.OPT_OPEN_GARAGE; break;//开门 @@ -231,7 +231,7 @@ public class EqEquipmentServiceImpl implements IEqEquipmentService { @Override public String setting(EqDeviceSetBo bo) { String cmd = ""; - if (checkOnline(bo.getEquipmentCode())) throw new RuntimeException("设备不在线"); + if (!checkOnline(bo.getEquipmentCode())) throw new RuntimeException("设备不在线"); int operateType = bo.getOperateType(); switch (operateType){ case 1: cmd = DeviceSetCmd.AutomaticDoorClosingSwitch_false; break;//自动关门功能开关 关