fengxiang
2018-04-17 3f220062a81ca7314c45201a73cc039debe050a4
设备缓存 orgids
1 files modified
13 ■■■■ changed files
src/main/java/com/moral/service/impl/DeviceServiceImpl.java 13 ●●●● patch | view | raw | blame | history
src/main/java/com/moral/service/impl/DeviceServiceImpl.java
@@ -210,12 +210,13 @@
    private void refreshDeviceInRedis(Device device){
         if(!StringUtils.isBlank(device.getMac())){
             Device simpleDevice = new Device();
             simpleDevice.setId(device.getId());
             simpleDevice.setName(device.getName());
             simpleDevice.setAddress(device.getAddress());
             simpleDevice.setDeviceVersionId(device.getDeviceVersionId());
             simpleDevice.setMac(device.getMac());
             simpleDevice.setMonitorPointId(device.getMonitorPointId());
             simpleDevice.setId(device.getId());// id
             simpleDevice.setName(device.getName());// name
             simpleDevice.setAddress(device.getAddress());// address
             simpleDevice.setDeviceVersionId(device.getDeviceVersionId());// version
             simpleDevice.setMac(device.getMac()); // mac
             simpleDevice.setMonitorPointId(device.getMonitorPointId());// 监控地id
             simpleDevice.setOrganizationIds(device.getOrganizationIds());// 组织数组
             if(device.getMonitorPointId()!=null){
                 List<Integer> orgIds = monitorPointMapper.selectOrganizationIds(device.getMonitorPointId());
                 simpleDevice.setOrganizationIds(orgIds);