ximon-admin/src/main/java/com/sandu/ximon/admin/service/PoleBindingService.java
@@ -37,7 +37,8 @@ List<PoleBinding> list = list(eq); if (list.size() != 0) { for (PoleBinding poleBinding : list) { if (poleBinding.getDeviceType().equals(deviceType)) { //充电桩的绑定是网络请求是带过来的灯杆信息,要允许直接修改 if (poleBinding.getDeviceType().equals(deviceType) && deviceType != 2) { throw new BusinessException("该灯杆已绑定过相同类型设备"); } } @@ -54,6 +55,8 @@ } else { one.setPoleId(poleId); one.setDeviceType(param.getDeviceType()); one.setDeviceName(param.getDeviceName()); one.setDeviceCode(param.getDeviceCode()); return updateById(one); } }