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
190456d5
Commit
190456d5
authored
Aug 26, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改文件存储路径
parent
f9ec10ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
device-manager/src/main/java/com/mortals/xhx/base/framework/config/RedissonConfig.java
...com/mortals/xhx/base/framework/config/RedissonConfig.java
+1
-1
device-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DeviceStartService.java
...als/xhx/daemon/applicationservice/DeviceStartService.java
+2
-4
No files found.
device-manager/src/main/java/com/mortals/xhx/base/framework/config/RedissonConfig.java
View file @
190456d5
...
@@ -33,7 +33,7 @@ public class RedissonConfig {
...
@@ -33,7 +33,7 @@ public class RedissonConfig {
private
int
database
;
private
int
database
;
@Bean
//
@Bean
public
RedissonClient
redissonClient
()
{
public
RedissonClient
redissonClient
()
{
RedissonClient
redissonClient
;
RedissonClient
redissonClient
;
Config
config
=
new
Config
();
Config
config
=
new
Config
();
...
...
device-manager/src/main/java/com/mortals/xhx/daemon/applicationservice/DeviceStartService.java
View file @
190456d5
...
@@ -56,7 +56,7 @@ public class DeviceStartService implements IApplicationStartedService {
...
@@ -56,7 +56,7 @@ public class DeviceStartService implements IApplicationStartedService {
sendTaskThreadPool
.
init
(
20
);
sendTaskThreadPool
.
init
(
20
);
//启动短信发送响应更新线程
//启动短信发送响应更新线程
sendTaskThreadPool
.
execute
(()
->
{
/*
sendTaskThreadPool.execute(() -> {
int waitTime = 1000;
int waitTime = 1000;
while (!stopped) {
while (!stopped) {
try {
try {
...
@@ -74,7 +74,7 @@ public class DeviceStartService implements IApplicationStartedService {
...
@@ -74,7 +74,7 @@ public class DeviceStartService implements IApplicationStartedService {
}
}
}
}
}
}
});
});
*/
//初始化站点缓存
//初始化站点缓存
...
@@ -84,8 +84,6 @@ public class DeviceStartService implements IApplicationStartedService {
...
@@ -84,8 +84,6 @@ public class DeviceStartService implements IApplicationStartedService {
Rest
<
RespData
<
List
<
SitePdu
>>>
resp
=
siteFeign
.
list
(
sitePdu
);
Rest
<
RespData
<
List
<
SitePdu
>>>
resp
=
siteFeign
.
list
(
sitePdu
);
if
(
resp
.
getCode
()
==
1
)
{
if
(
resp
.
getCode
()
==
1
)
{
List
<
SitePdu
>
sitePduList
=
resp
.
getData
().
getData
();
List
<
SitePdu
>
sitePduList
=
resp
.
getData
().
getData
();
sitePduList
.
stream
().
forEach
(
site
->
{
sitePduList
.
stream
().
forEach
(
site
->
{
cacheService
.
hset
(
KEY_SITE_CACHE
,
site
.
getId
().
toString
(),
site
.
getSiteName
());
cacheService
.
hset
(
KEY_SITE_CACHE
,
site
.
getId
().
toString
(),
site
.
getSiteName
());
});
});
...
...
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