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
091e9b9a
Commit
091e9b9a
authored
May 17, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加离线 上线日志
parent
c79610d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
device-manager/pom.xml
device-manager/pom.xml
+1
-1
device-manager/src/main/java/com/mortals/xhx/daemon/task/DeviceRestartTaskImpl.java
...va/com/mortals/xhx/daemon/task/DeviceRestartTaskImpl.java
+1
-2
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
...als/xhx/module/device/service/impl/DeviceServiceImpl.java
+0
-1
No files found.
device-manager/pom.xml
View file @
091e9b9a
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.port>
6379
</profiles.redis.port>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.username></profiles.redis.username>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.password>
hotel@2020
</profiles.redis.password>
<profiles.redis.database>
6
</profiles.redis.database>
<profiles.redis.database>
3
</profiles.redis.database>
<profiles.redis.sentinel>
192.168.0.252:26379,192.168.0.251:26379,192.168.0.98:26379
</profiles.redis.sentinel>
<profiles.redis.sentinel>
192.168.0.252:26379,192.168.0.251:26379,192.168.0.98:26379
</profiles.redis.sentinel>
<profiles.rabbitmq.host>
192.168.0.98
</profiles.rabbitmq.host>
<profiles.rabbitmq.host>
192.168.0.98
</profiles.rabbitmq.host>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
<profiles.rabbitmq.port>
5672
</profiles.rabbitmq.port>
...
...
device-manager/src/main/java/com/mortals/xhx/daemon/task/DeviceRestartTaskImpl.java
View file @
091e9b9a
...
@@ -80,8 +80,7 @@ public class DeviceRestartTaskImpl implements ITaskExcuteService {
...
@@ -80,8 +80,7 @@ public class DeviceRestartTaskImpl implements ITaskExcuteService {
});
});
//定时删除日志 7天前
//定时删除日志 7天前
DeviceLogQuery
contidion
=
new
DeviceLogQuery
();
DeviceLogQuery
contidion
=
new
DeviceLogQuery
();
DateUtils
.
addCurrDate
(-
7
);
contidion
.
setCreateTimeEnd
(
DateUtils
.
getDateTimeStr
(
DateUtils
.
addCurrDate
(-
3
),
DateUtils
.
P_yyyy_MM_dd_HH_mm_ss
));
contidion
.
setCreateTimeEnd
(
DateUtils
.
getDateTimeStr
(
DateUtils
.
addCurrDate
(-
7
),
DateUtils
.
P_yyyy_MM_dd_HH_mm_ss
));
deviceLogService
.
getDao
().
delete
(
contidion
);
deviceLogService
.
getDao
().
delete
(
contidion
);
}
}
...
...
device-manager/src/main/java/com/mortals/xhx/module/device/service/impl/DeviceServiceImpl.java
View file @
091e9b9a
...
@@ -596,7 +596,6 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
...
@@ -596,7 +596,6 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
@Override
@Override
protected
void
removeBefore
(
Long
[]
ids
,
Context
context
)
throws
AppException
{
protected
void
removeBefore
(
Long
[]
ids
,
Context
context
)
throws
AppException
{
Long
[]
removeIds
=
Arrays
.
asList
(
ids
).
stream
().
map
(
id
->
{
Long
[]
removeIds
=
Arrays
.
asList
(
ids
).
stream
().
map
(
id
->
{
DeviceEntity
deviceEntity
=
this
.
get
(
id
,
context
);
DeviceEntity
deviceEntity
=
this
.
get
(
id
,
context
);
if
(!
ObjectUtils
.
isEmpty
(
deviceEntity
))
{
if
(!
ObjectUtils
.
isEmpty
(
deviceEntity
))
{
...
...
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