Commit 213ce67a by HlQ

[fix] 空指针修复

1 parent 2999944b
......@@ -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);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!