ximon-admin/src/main/java/com/sandu/ximon/admin/service/PoleService.java
@@ -75,6 +75,13 @@ if (pole == null) { throw new BusinessException("未找到该灯杆"); } Long clientId = SecurityUtils.getClientId(); //非超管 if (clientId != null) { if (!Objects.equals(SecurityUtils.getUserId(), pole.getUserId()) && !Objects.equals(SecurityUtils.getUserId(), pole.getClientId())) { throw new BusinessException("该灯杆不属于您"); } } Pole update = new Pole(); BeanUtils.copyProperties(param, update); update.setId(poleId);