Commit 5c59f549 authored by 赵啸非's avatar 赵啸非

修改redis 过期事件通知

parent 17945f62
...@@ -75,7 +75,11 @@ public class DeviceMsgComsumerStartedService implements IApplicationStartedServi ...@@ -75,7 +75,11 @@ public class DeviceMsgComsumerStartedService implements IApplicationStartedServi
TbQueueConsumer<TbQueueMsg> mainConsumer = consumerService.getMainConsumer(); TbQueueConsumer<TbQueueMsg> mainConsumer = consumerService.getMainConsumer();
if (!ObjectUtils.isEmpty(mainConsumer)) { if (!ObjectUtils.isEmpty(mainConsumer)) {
//订阅所有已激活设备 //订阅所有已激活设备
Set<TopicPartitionInfo> topicPartitionInfoSet = deviceService.find(new DeviceQuery().active(ActiveEnum.已激活.getValue()).status(StatusEnum.启用.getValue())).stream() Set<TopicPartitionInfo> topicPartitionInfoSet = deviceService.find(new DeviceQuery()
.active(ActiveEnum.已激活.getValue())
//.status(StatusEnum.启用.getValue())
)
.stream()
.filter(f -> !ObjectUtils.isEmpty(platformService.get(f.getPlatformId()))) .filter(f -> !ObjectUtils.isEmpty(platformService.get(f.getPlatformId())))
.filter(f -> !ObjectUtils.isEmpty(productService.get(f.getProductId()))) .filter(f -> !ObjectUtils.isEmpty(productService.get(f.getProductId())))
.map(item -> { .map(item -> {
......
...@@ -90,9 +90,9 @@ Authorization: {{authToken}} ...@@ -90,9 +90,9 @@ Authorization: {{authToken}}
Content-Type: application/json Content-Type: application/json
{ {
"receiveMethod": 1, "receiveMethod": 3,
"deviceName": "测试接口创建设备3", "deviceName": "测试接口创建设备3",
"deviceCode": "b12345678", "deviceCode": "a12345678",
"siteId": 123, "siteId": 123,
"siteCode": "adfasfdasfdasf", "siteCode": "adfasfdasfdasf",
"siteName": "测试站点", "siteName": "测试站点",
......
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