mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 17:38:48 +08:00
设置和操作添加设备不在线提示
This commit is contained in:
parent
13e7150f48
commit
00634e17f2
@ -202,7 +202,7 @@ public class EqEquipmentServiceImpl implements IEqEquipmentService {
|
|||||||
@Override
|
@Override
|
||||||
public String operate(EqDeviceCmdBo bo) {
|
public String operate(EqDeviceCmdBo bo) {
|
||||||
String cmd = "";
|
String cmd = "";
|
||||||
if (checkOnline(bo.getEquipmentCode())) throw new RuntimeException("设备不在线");
|
if (!checkOnline(bo.getEquipmentCode())) throw new RuntimeException("设备不在线");
|
||||||
int operateType = bo.getOperateType();
|
int operateType = bo.getOperateType();
|
||||||
switch (operateType){
|
switch (operateType){
|
||||||
case 1: cmd = DeviceCtlCmd.OPT_OPEN_GARAGE; break;//开门
|
case 1: cmd = DeviceCtlCmd.OPT_OPEN_GARAGE; break;//开门
|
||||||
@ -231,7 +231,7 @@ public class EqEquipmentServiceImpl implements IEqEquipmentService {
|
|||||||
@Override
|
@Override
|
||||||
public String setting(EqDeviceSetBo bo) {
|
public String setting(EqDeviceSetBo bo) {
|
||||||
String cmd = "";
|
String cmd = "";
|
||||||
if (checkOnline(bo.getEquipmentCode())) throw new RuntimeException("设备不在线");
|
if (!checkOnline(bo.getEquipmentCode())) throw new RuntimeException("设备不在线");
|
||||||
int operateType = bo.getOperateType();
|
int operateType = bo.getOperateType();
|
||||||
switch (operateType){
|
switch (operateType){
|
||||||
case 1: cmd = DeviceSetCmd.AutomaticDoorClosingSwitch_false; break;//自动关门功能开关 关
|
case 1: cmd = DeviceSetCmd.AutomaticDoorClosingSwitch_false; break;//自动关门功能开关 关
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user