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
c507bd6d
Commit
c507bd6d
authored
Sep 04, 2024
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:Agent应用配置保存 参数验证和转换
parent
f10dae8a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
BizAgentApplicationInfoServiceImpl.java
...tion/service/impl/BizAgentApplicationInfoServiceImpl.java
+8
-1
No files found.
src/main/java/cn/com/poc/agent_application/service/impl/BizAgentApplicationInfoServiceImpl.java
View file @
c507bd6d
...
...
@@ -79,7 +79,8 @@ public class BizAgentApplicationInfoServiceImpl extends BaseServiceImpl
entity
.
setId
(
null
);
entity
.
setIsDeleted
(
"N"
);
entity
.
setAgentId
(
UUIDTool
.
getUUID
());
BizAgentApplicationInfoModel
model
=
AgentApplicationInfoConvert
.
entityToModel
(
entity
);
BizAgentApplicationInfoModel
model
=
new
BizAgentApplicationInfoModel
();
paramVerificationAndConvert
(
entity
,
model
);
BizAgentApplicationInfoModel
saveModel
=
this
.
repository
.
save
(
model
);
return
AgentApplicationInfoConvert
.
modelToEntity
(
saveModel
);
}
...
...
@@ -116,6 +117,12 @@ public class BizAgentApplicationInfoServiceImpl extends BaseServiceImpl
return
true
;
}
/**
* 参数验证和转换 Entity To Model
*
* @param entity
* @param model
*/
private
void
paramVerificationAndConvert
(
BizAgentApplicationInfoEntity
entity
,
BizAgentApplicationInfoModel
model
)
{
if
(
StringUtils
.
isNotBlank
(
entity
.
getAgentTitle
()))
{
model
.
setAgentTitle
(
entity
.
getAgentTitle
());
...
...
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