Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yanxuan-qc-change-system
Overview
Overview
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
胡园园
yanxuan-qc-change-system
Commits
9b166f46
Commit
9b166f46
authored
Dec 05, 2022
by
jx-art
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ID信息注入
parent
ddf57fcf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
AdminChangeConfigServiceImpl.java
...biz/service/impl/change/AdminChangeConfigServiceImpl.java
+8
-1
No files found.
yanxuan-qc-change-system-biz/src/main/java/com/netease/mail/yanxuan/change/biz/service/impl/change/AdminChangeConfigServiceImpl.java
View file @
9b166f46
...
@@ -128,7 +128,14 @@ public class AdminChangeConfigServiceImpl implements AdminChangeConfigService {
...
@@ -128,7 +128,14 @@ public class AdminChangeConfigServiceImpl implements AdminChangeConfigService {
if
(
changeConfigReq
.
getId
()
==
null
){
if
(
changeConfigReq
.
getId
()
==
null
){
return
AjaxResult
.
of
(
9001
,
"修改变更模板主键id不能为空"
);
return
AjaxResult
.
of
(
9001
,
"修改变更模板主键id不能为空"
);
}
}
//新增类似 //内嵌行动方案
//先查询注入ID后在修改
ChangeConfig
config
=
changeConfigService
.
queryChangeConfig
(
changeConfigReq
.
getId
());
if
(
config
==
null
){
return
AjaxResult
.
of
(
9001
,
"未找到变更类型配置"
);
}
changeConfigReq
.
getChangeTypes
().
get
(
0
).
setId
(
config
.
getParentChangeClassId
());
changeConfigReq
.
getChangeTypes
().
get
(
1
).
setId
(
config
.
getSonChangeClassId
());
//新增类似
List
<
ChangeType
>
changeTypes
=
typeService
.
updateChangeType
(
changeConfigReq
.
getChangeTypes
());
List
<
ChangeType
>
changeTypes
=
typeService
.
updateChangeType
(
changeConfigReq
.
getChangeTypes
());
ChangeConfig
changeConfig
=
parameterSplicing
(
changeTypes
,
changeConfigReq
);
ChangeConfig
changeConfig
=
parameterSplicing
(
changeTypes
,
changeConfigReq
);
changeConfigService
.
updateChangeConfig
(
changeConfig
);
changeConfigService
.
updateChangeConfig
(
changeConfig
);
...
...
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