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
cae43939
Commit
cae43939
authored
Nov 07, 2024
by
wangqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询所有行动项是否已完成
parent
a9402e84
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
ExtActionItemServiceImpl.java
.../dcs/plan/core/service/impl/ExtActionItemServiceImpl.java
+11
-9
ExtQuarterlyReportServiceImpl.java
...plan/core/service/impl/ExtQuarterlyReportServiceImpl.java
+2
-1
No files found.
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtActionItemServiceImpl.java
View file @
cae43939
...
...
@@ -9,6 +9,7 @@ import com.yonde.dcs.plan.core.service.ExtActionItemService;
import
com.yonde.dcs.plan.core.service.ExtQuarterlyReportService
;
import
com.yonde.dcs.plan.entity.po.ExtActionItem
;
import
com.yonde.dex.basedata.data.search.SearchItem
;
import
com.yonde.dex.basedata.data.search.SearchItems
;
import
com.yonde.dex.basedata.data.search.SearchQueryCondition
;
import
com.yonde.dex.basedata.entity.api.ApiResult
;
import
com.yonde.dex.basedata.entity.data.DxPageImpl
;
...
...
@@ -48,21 +49,22 @@ public class ExtActionItemServiceImpl<V extends ExtActionItemVO> implements ExtA
Boolean
allActionItemIsCompleteFlag
=
false
;
//根据行动项id查询季报id
SearchQueryCondition
searchQRById
=
SearchUtil
.
buildQueryWithOpenAttr
(
"id"
,
SearchItem
.
Operator
.
EQ
,
extActionItemVO
.
getExtQuarterlyReport
().
getId
(),
"extActionItems"
);
ExtQuarterlyReportVO
extQuarterlyReportVO
=
(
ExtQuarterlyReportVO
)
extQuarterlyReportService
.
findOne
(
searchQRById
);
for
(
ExtActionItemVO
actionItem
:
extQuarterlyReportVO
.
getExtActionItems
()){
//根据行动项id查询季报
SearchQueryCondition
query
=
SearchQueryCondition
.
builder
()
.
openProp
(
SearchQueryCondition
.
builder
().
name
(
"extQuarterlyReport"
)
.
openProp
(
SearchQueryCondition
.
builder
().
name
(
"extActionItems"
).
build
()).
build
())
.
searchItems
(
SearchItems
.
builder
()
.
item
(
new
SearchItem
(
"id"
,
SearchItem
.
Operator
.
EQ
,
extActionItemVO
.
getId
(),
null
))
.
build
()).
build
();
ExtActionItemVO
extActionItemVOForDB
=
this
.
findRecursion
(
query
).
getContent
().
get
(
0
);
for
(
ExtActionItemVO
actionItem
:
extActionItemVOForDB
.
getExtQuarterlyReport
().
getExtActionItems
()){
if
(!
actionItem
.
getState
().
equals
(
Constants
.
COMPLETE
)){
break
;
}
allActionItemIsCompleteFlag
=
true
;
}
if
(
allActionItemIsCompleteFlag
){
extQuarterlyReportService
.
changeStatus
(
ext
QuarterlyReportVO
.
getId
(),
Constants
.
PENDING_REVIEW
,
true
);
extQuarterlyReportService
.
changeStatus
(
ext
ActionItemVOForDB
.
getExtQuarterlyReport
()
.
getId
(),
Constants
.
PENDING_REVIEW
,
true
);
}
return
ApiResult
.
SUCCESS
;
}
...
...
dcs-plan-core/src/main/java/com/yonde/dcs/plan/core/service/impl/ExtQuarterlyReportServiceImpl.java
View file @
cae43939
...
...
@@ -158,7 +158,8 @@ public class ExtQuarterlyReportServiceImpl<V extends ExtQuarterlyReportVO> imple
*/
private
void
extFindFileIds
(
List
<
Long
>
fileIds
,
List
<
ObjFileLinkVO
>
objFileLinks
,
String
fileType
)
{
if
(!
CollectionUtils
.
isEmpty
(
objFileLinks
))
{
//遍历取文件id
//遍历取主内容的文件id
//List<ObjFileLinkVO> objFileLinkVOs = objFileLinks.stream().filter(n -> n.getContentType().equals(fileType)).collect(Collectors.toList());
objFileLinks
.
stream
().
forEach
(
o
->
{
fileIds
.
add
(
o
.
getTargetId
());});
}
}
...
...
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