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

style: 添加注释

parent 40805d5a
......@@ -809,6 +809,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
if (CollectionUtils.isEmpty(originals)) {
return;
}
// 【记忆变量】对话缓存不存在,则不需要处理
Map<Object, Object> memoryVariable = MemoryVariableWriter.get(identifier);
if (MapUtils.isEmpty(memoryVariable)) {
return;
......@@ -850,11 +851,12 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
addKeys.add(key);
}
}
// 删除
if (!delKeys.isEmpty()) {
MemoryVariableWriter.delItem(identifier, delKeys.toArray(new String[0]));
}
// 新增
if (!addKeys.isEmpty()) {
Map<String, Object> map = new HashMap<>();
for (String key : addKeys) {
......@@ -863,6 +865,7 @@ public class AgentApplicationInfoServiceImpl implements AgentApplicationInfoServ
}
MemoryVariableWriter.addItem(identifier, map);
}
// 更新
if (!updateKeys.isEmpty()) {
Map<String, Object> map = new HashMap<>();
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