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
dbb41419
Commit
dbb41419
authored
Dec 13, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决设备下发消息
parent
72010a1c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
device-manager/src/main/java/com/mortals/xhx/thread/DeviceDownMsgThread.java
...main/java/com/mortals/xhx/thread/DeviceDownMsgThread.java
+8
-1
No files found.
device-manager/src/main/java/com/mortals/xhx/thread/DeviceDownMsgThread.java
View file @
dbb41419
...
...
@@ -72,6 +72,9 @@ public class DeviceDownMsgThread extends AbstractThread {
}
if
(!
ObjectUtils
.
isEmpty
(
deviceMsgReqs
))
{
log
.
info
(
"消息下发数量:{}"
,
deviceMsgReqs
.
size
());
ArrayList
<
DeviceLogEntity
>
deviceLogList
=
new
ArrayList
<>();
for
(
DeviceMsgReq
item
:
deviceMsgReqs
)
{
//根据设备编码查询设备
DeviceEntity
deviceEntity
=
null
;
...
...
@@ -103,11 +106,15 @@ public class DeviceDownMsgThread extends AbstractThread {
deviceLogEntity
.
setLogType
(
LogTypeEnum
.
下发服务
.
getValue
());
deviceLogEntity
.
setCreateUserId
(
1L
);
deviceLogEntity
.
setCreateTime
(
new
Date
());
deviceLogService
.
save
(
deviceLogEntity
,
null
);
deviceLogList
.
add
(
deviceLogEntity
);
// deviceLogService.save(deviceLogEntity, null);
}
else
{
log
.
info
(
"未找到设备,deviceCode:{}"
,
item
.
getDeviceCode
());
}
}
if
(!
ObjectUtils
.
isEmpty
(
deviceLogList
))
{
deviceLogService
.
save
(
deviceLogList
);
}
}
}
...
...
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