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
473f60f8
Commit
473f60f8
authored
Sep 27, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改IED计划状态,完成时间
parent
058fd9fc
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
ExtIEDPlanServiceImpl.java
...nde/dcs/plan/core/service/impl/ExtIEDPlanServiceImpl.java
+7
-6
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtIEDPlanServiceImpl.java
View file @
473f60f8
...
...
@@ -228,15 +228,16 @@ public class ExtIEDPlanServiceImpl<V extends ExtIEDPlanVO> implements ExtIEDPlan
public
String
updatePlanState
(
Long
id
,
String
planState
)
{
if
(!
StringUtils
.
isEmpty
(
planState
))
{
SearchQueryCondition
queryCondition
=
SearchUtil
.
buildQuery
(
"targetId"
,
SearchItem
.
Operator
.
EQ
,
id
);
// SearchQueryCondition condition = SearchQueryCondition.builder()
// .searchItems(SearchItems.builder()
// .item(new SearchItem("targetId", SearchItem.Operator.EQ, id, null))
// .build())
// .build();
List
<
ExtIEDPlanDocLinkVO
>
content
=
extIEDPlanDocLinkService
.
findRecursion
(
queryCondition
).
getContent
();
Long
iedPlanId
=
content
.
get
(
0
).
getSourceId
();
if
(!
ObjectUtil
.
isEmpty
(
iedPlanId
))
{
this
.
changeStatus
(
iedPlanId
,
planState
,
true
);
SearchQueryCondition
queryIEDPlanCondition
=
SearchUtil
.
buildQuery
(
"id"
,
SearchItem
.
Operator
.
EQ
,
iedPlanId
);
ExtIEDPlanVO
extIEDPlanVOForDB
=
this
.
findRecursion
(
queryIEDPlanCondition
).
getContent
().
get
(
0
);
extIEDPlanVOForDB
.
setState
(
planState
);
extIEDPlanVOForDB
=
this
.
changeStatus
((
V
)
extIEDPlanVOForDB
);
extIEDPlanVOForDB
.
setOperator
(
OperatorType
.
MODIFY
);
extIEDPlanVOForDB
.
setActualCompleteTime
(
LocalDateTime
.
now
());
this
.
saveRecursion
((
V
)
extIEDPlanVOForDB
);
}
else
{
throw
new
DxBusinessException
(
"500"
,
"根据文档id:"
+
id
+
",未查到相关计划"
);
}
...
...
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