Commit 8a5cdb50 authored by alex yao's avatar alex yao

style: 添加注释

parent 40805d5a
...@@ -809,6 +809,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ ...@@ -809,6 +809,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
if (CollectionUtils.isEmpty(originals)) { if (CollectionUtils.isEmpty(originals)) {
return; return;
} }
// 【记忆变量】对话缓存不存在,则不需要处理
Map<Object, Object> memoryVariable = MemoryVariableWriter.get(identifier); Map<Object, Object> memoryVariable = MemoryVariableWriter.get(identifier);
if (MapUtils.isEmpty(memoryVariable)) { if (MapUtils.isEmpty(memoryVariable)) {
return; return;
...@@ -850,11 +851,12 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ ...@@ -850,11 +851,12 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
addKeys.add(key); addKeys.add(key);
} }
} }
// 删除 // 删除
if (!delKeys.isEmpty()) { if (!delKeys.isEmpty()) {
MemoryVariableWriter.delItem(identifier, delKeys.toArray(new String[0])); MemoryVariableWriter.delItem(identifier, delKeys.toArray(new String[0]));
} }
// 新增
if (!addKeys.isEmpty()) { if (!addKeys.isEmpty()) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
for (String key : addKeys) { for (String key : addKeys) {
...@@ -863,6 +865,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ ...@@ -863,6 +865,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
} }
MemoryVariableWriter.addItem(identifier, map); MemoryVariableWriter.addItem(identifier, map);
} }
// 更新
if (!updateKeys.isEmpty()) { if (!updateKeys.isEmpty()) {
Map<String, Object> map = new HashMap<>(); Map<String, Object> map = new HashMap<>();
for (String key : updateKeys) { for (String key : updateKeys) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment