Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李苗
/
Vion-DevOps
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 213ce67a
authored
Feb 26, 2025
by
HlQ
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[fix] 空指针修复
1 parent
2999944b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/main/java/vion/service/impl/monitor/AgentServiceImpl.java
src/main/java/vion/service/impl/monitor/AgentServiceImpl.java
View file @
213ce67
...
...
@@ -384,6 +384,7 @@ public class AgentServiceImpl extends MPJBaseServiceImpl<AgentMapper, Agent> imp
List
<
MAccount
>
insAccList
=
new
ArrayList
<>();
List
<
MAccount
>
updAccList
=
new
ArrayList
<>();
// fixme 时区更新,同步更新指标并下发
accountList
.
forEach
(
a
->
{
if
(
uid2AccMap
.
containsKey
(
a
.
getUid
()))
{
var
acc
=
uid2AccMap
.
get
(
a
.
getUid
());
...
...
@@ -523,6 +524,9 @@ public class AgentServiceImpl extends MPJBaseServiceImpl<AgentMapper, Agent> imp
var
accUid2EventMap
=
accEventList
.
stream
().
collect
(
Collectors
.
groupingBy
(
RAccountEvent:
:
getAccountUid
));
insMallList
.
forEach
(
m
->
{
var
eventList
=
accUid2EventMap
.
get
(
m
.
getAccountUid
());
if
(
CollUtil
.
isEmpty
(
eventList
))
{
return
;
}
var
timeZone
=
m
.
getTimeZone
();
var
offsetMinute
=
TimeZoneUtil
.
getOffsetMinute
(
timeZone
);
...
...
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