2021与蓝度共同重构项目,服务端
fix
zhanzhiqin
2022-05-16 ae2fc9a4f29e6d9d0b95f63585b058ab7c60c5be
ximon-admin/src/main/java/com/sandu/ximon/admin/service/MonitorService.java
@@ -225,6 +225,7 @@
        if (one != null) {
            equipmentInfo.setEquipmentCreateTime(one.getAddTime());
            equipmentInfo.setEquipmentMac(one.getDeviceSerial());
            equipmentInfo.setEquipmentName(one.getDeviceName());
        }
        String token = getAccessToken();
@@ -401,7 +402,7 @@
        boolean belong = SpringContextHolder.getBean(PoleBindingService.class).isBelong(one.getDeviceSerial(), PoleBindingEnums.MONITOR);
        if (!belong) {
            throw new RuntimeException("该设备不属于您,不能修改设备信息");
            throw new BusinessException("该设备不属于您,不能修改设备信息");
        }
        if (one != null) {
            one.setNote(notes);