2021与蓝度共同重构项目,服务端
liuhaonan
2022-04-22 70e0a7340b4b6d939251f26c9a7ed938113a7ba5
ximon-admin/src/main/java/com/sandu/ximon/admin/controller/PoleController.java
@@ -124,8 +124,7 @@
            switch (param.getDeviceType()) {
                case 0:
                    Pole pole = poleService.getById(poleId);
                    if (!param.getDeviceCode().equals(pole.getDeviceCode())) {
//                    if (!pole.getDeviceCode().equals(param.getDeviceCode())) {
                    if (pole != null) {
                        pole.setPoleName(param.getDeviceName());
                        pole.setDeviceCode(param.getDeviceCode());
                        poleService.updateById(pole);