ximon-admin/src/main/java/com/sandu/ximon/admin/service/PoleBindingService.java
@@ -159,10 +159,12 @@ if (deviceCode == null) { throw new BusinessException("设备编号不能为空"); } //查灯杆归属关系 boolean belong = isBelong(deviceCode, null); if(!belong){ throw new BusinessException("该灯杆不属于您,无法解绑!"); if (SecurityUtils.getClientId() != null) { //查灯杆归属关系 boolean belong = isBelong(deviceCode, null); if (!belong) { throw new BusinessException("该灯杆不属于您,无法解绑!"); } } //直接删除设备不需要灯杆ID PoleBinding one = getOne(Wrappers.lambdaQuery(PoleBinding.class).eq(PoleBinding::getDeviceCode, deviceCode));