Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
device-new-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
device-new-platform
Commits
5c59f549
Commit
5c59f549
authored
Jun 23, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改redis 过期事件通知
parent
17945f62
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
device-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DeviceMsgComsumerStartedService.java
...n/applicationservice/DeviceMsgComsumerStartedService.java
+5
-1
device-manager/src/test/java/com/mortals/httpclient/device/DeviceController.http
.../java/com/mortals/httpclient/device/DeviceController.http
+2
-2
No files found.
device-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DeviceMsgComsumerStartedService.java
View file @
5c59f549
...
@@ -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
->
{
...
...
device-manager/src/test/java/com/mortals/httpclient/device/DeviceController.http
View file @
5c59f549
...
@@ -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": "
b
12345678",
"deviceCode": "
a
12345678",
"siteId": 123,
"siteId": 123,
"siteCode": "adfasfdasfdasf",
"siteCode": "adfasfdasfdasf",
"siteName": "测试站点",
"siteName": "测试站点",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment