src/main/java/com/moral/service/impl/DeviceServiceImpl.java
@@ -202,7 +202,12 @@ } return device; } /* 刷新 redis 设备的信息 */ private void refreshDeviceInRedis(String mac){ getDeviceWithOrgIdsByMac(mac); } @Override public PageBean queryByPageBean(PageBean pageBean) { Example example = ExampleUtil.generateExample(ENTITY_CLASS,pageBean); @@ -250,6 +255,8 @@ deviceMapper.insertSelective(device); }else{ deviceMapper.updateByPrimaryKeySelective(device); //刷新redis里设备信息 refreshDeviceInRedis(device.getMac()); } } catch (Exception ex){