Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-plan
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
INET-TWO
server
dcs-plan
Commits
ceecfbd3
Commit
ceecfbd3
authored
Oct 11, 2024
by
wangyangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
基线:历史计划id保存到动态属性baseLineRefId 基线关联id中
parent
b6062144
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ExtPlanBaseLineServiceImpl.java
...cs/plan/core/service/impl/ExtPlanBaseLineServiceImpl.java
+2
-0
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtPlanBaseLineServiceImpl.java
View file @
ceecfbd3
...
@@ -62,6 +62,7 @@ public class ExtPlanBaseLineServiceImpl<V extends ExtPlanBaseLineVO> implements
...
@@ -62,6 +62,7 @@ public class ExtPlanBaseLineServiceImpl<V extends ExtPlanBaseLineVO> implements
List
<
IdOnlyVO
>
result
=
recursion
.
getContent
();
List
<
IdOnlyVO
>
result
=
recursion
.
getContent
();
List
<
ExtPlanBaseLineLinkVO
>
lineLinkVOS
=
new
ArrayList
<>();
List
<
ExtPlanBaseLineLinkVO
>
lineLinkVOS
=
new
ArrayList
<>();
result
.
forEach
(
idVO
->
{
result
.
forEach
(
idVO
->
{
Long
oldId
=
idVO
.
getId
();
idVO
.
setOperator
(
OperatorType
.
ADD
);
idVO
.
setOperator
(
OperatorType
.
ADD
);
idVO
.
setId
(
null
);
idVO
.
setId
(
null
);
ReflectUtil
.
setFieldValue
(
idVO
,
"dxContextEmbeddable"
,
null
);
ReflectUtil
.
setFieldValue
(
idVO
,
"dxContextEmbeddable"
,
null
);
...
@@ -73,6 +74,7 @@ public class ExtPlanBaseLineServiceImpl<V extends ExtPlanBaseLineVO> implements
...
@@ -73,6 +74,7 @@ public class ExtPlanBaseLineServiceImpl<V extends ExtPlanBaseLineVO> implements
dynamicAttrs
=
idVO
.
getDynamicAttrs
();
dynamicAttrs
=
idVO
.
getDynamicAttrs
();
}
}
dynamicAttrs
.
put
(
"baselineState"
,
ReflectUtil
.
getFieldValue
(
idVO
,
state
));
dynamicAttrs
.
put
(
"baselineState"
,
ReflectUtil
.
getFieldValue
(
idVO
,
state
));
dynamicAttrs
.
put
(
"baseLineRefId"
,
oldId
);
ExtPlanBaseLineLinkVO
lineLinkVO
=
new
ExtPlanBaseLineLinkVO
();
ExtPlanBaseLineLinkVO
lineLinkVO
=
new
ExtPlanBaseLineLinkVO
();
lineLinkVO
.
setOperator
(
OperatorType
.
ADD
);
lineLinkVO
.
setOperator
(
OperatorType
.
ADD
);
lineLinkVO
.
setTarget
(
idVO
);
lineLinkVO
.
setTarget
(
idVO
);
...
...
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