| | |
| | | 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);
|