Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
8a5cdb50
Commit
8a5cdb50
authored
Nov 22, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: 添加注释
parent
40805d5a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
AgentApplicationInfoServiceImpl.java
...ation/aggregate/impl/AgentApplicationInfoServiceImpl.java
+4
-1
No files found.
src/main/java/cn/com/poc/agent_application/aggregate/impl/AgentApplicationInfoServiceImpl.java
View file @
8a5cdb50
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment