Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7ba6e4ef
authored
May 16, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化日志显示
1 parent
4bb4d85d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
src/main/java/cn/com/glsx/stdinterface/modules/multithread/AsyncTasks.java
src/main/java/cn/com/glsx/stdinterface/modules/multithread/AsyncTasks.java
View file @
7ba6e4e
...
...
@@ -37,10 +37,10 @@ public class AsyncTasks {
return
;
}
try
{
log
.
info
(
"开始分批同步激活信息,snList==="
+
JSONUtil
.
toJsonStr
(
snList
));
log
.
info
(
"
saveActiveInfo
开始分批同步激活信息,snList==="
+
JSONUtil
.
toJsonStr
(
snList
));
List
<
GpsBsData
>
lastGpsBsList
=
remoteGpsBsService
.
getLastGpsBsListBySns
(
snList
);
if
(
CollectionUtil
.
isEmpty
(
lastGpsBsList
))
{
log
.
info
(
"lastGpsBsList is null"
);
log
.
info
(
"
saveActiveInfo
lastGpsBsList is null"
);
return
;
}
lastGpsBsList
.
forEach
(
gpsBsData
->
{
...
...
@@ -90,10 +90,10 @@ public class AsyncTasks {
return
;
}
try
{
log
.
info
(
"开始分批同步激活信息,snList==="
+
JSONUtil
.
toJsonStr
(
snList
));
log
.
info
(
"
saveActiveInfoByTask
开始分批同步激活信息,snList==="
+
JSONUtil
.
toJsonStr
(
snList
));
List
<
GpsBsData
>
lastGpsBsList
=
remoteGpsBsService
.
getFirstGpsBsBatch
(
snList
);
if
(
CollectionUtil
.
isEmpty
(
lastGpsBsList
))
{
log
.
info
(
"lastGpsBsList is null"
);
log
.
info
(
"
saveActiveInfoByTask
lastGpsBsList is null"
);
return
;
}
lastGpsBsList
.
forEach
(
gpsBsData
->
{
...
...
@@ -117,11 +117,11 @@ public class AsyncTasks {
}
}
// 保存激活信息
log
.
info
(
"active device info:"
+
JSONUtil
.
toJsonStr
(
vehicleDevice
));
log
.
info
(
"active device info
by task
:"
+
JSONUtil
.
toJsonStr
(
vehicleDevice
));
vehicleDeviceMapper
.
updateByPrimaryKeySelective
(
vehicleDevice
);
});
}
catch
(
Exception
e
)
{
log
.
info
(
"saveActiveInfo异常信息==="
+
e
.
getMessage
());
log
.
info
(
"saveActiveInfo
ByTask
异常信息==="
+
e
.
getMessage
());
}
finally
{
countDownLatch
.
countDown
();
log
.
info
(
Thread
.
currentThread
().
getName
()
+
"countDownLatch关闭资源"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment