|  |  | 
 |  |  |         Integer orgId = specialDevice.getOrganizationId(); | 
 |  |  |         deleteOrganizationUnitAlarm(orgId, versionId); | 
 |  |  |         //刷新deviceInfo缓存 | 
 |  |  |         CacheUtils.refreshDeviceAlarmInfo(); | 
 |  |  |         CacheUtils.refreshSpecialDeviceAlarmInfo(); | 
 |  |  |         //操作日志记录 | 
 |  |  |         HttpServletRequest request = ((ServletRequestAttributes) Objects.requireNonNull(RequestContextHolder.getRequestAttributes())).getRequest(); | 
 |  |  |         StringBuilder content = new StringBuilder(); | 
 |  |  | 
 |  |  |         Organization organization = organizationMapper.selectById(specialDevice.getOrganizationId()); | 
 |  |  |         orgInfo.put("id", organization.getId()); | 
 |  |  |         orgInfo.put("name", organization.getName()); | 
 |  |  |         orgInfo.put("areaCode", organization.getAreaCode()); | 
 |  |  |         orgInfo.put("cityCode", organization.getCityCode()); | 
 |  |  |         orgInfo.put("provinceCode", organization.getProvinceCode()); | 
 |  |  |         specialDeviceInfo.put("organization", orgInfo); | 
 |  |  |  | 
 |  |  |         setDeviceInfoToRedis(mac, specialDeviceInfo); |