Commit e19f330c authored by 赵啸非's avatar 赵啸非

修改缓存刷新

parent 1420e0df
Pipeline #2708 failed with stages
......@@ -57,6 +57,7 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
deviceEntity.setDeviceStatus(DeviceStatusEnum.离线.getValue());
deviceEntity.setEnabled(EnabledEnum.启用.getValue());
this.getDao().update(deviceEntity);
this.putCache(deviceEntity.getId().toString(), deviceEntity);
String token = getToken();
DeviceReq deviceReq = new DeviceReq();
......@@ -74,6 +75,8 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
deviceEntity.setUpdateTime(new Date());
deviceEntity.setUpdateUserId(getContextUserId(context));
this.getDao().update(deviceEntity);
this.putCache(deviceEntity.getId().toString(), deviceEntity);
String token = getToken();
DeviceReq deviceReq = new DeviceReq();
deviceReq.setReceiveMethod(DeviceMethodEnum.ENABLED.getValue());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment