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;
...
@@ -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.core.service.ExtQuarterlyReportService
;
import
com.yonde.dcs.plan.entity.po.ExtActionItem
;
import
com.yonde.dcs.plan.entity.po.ExtActionItem
;
import
com.yonde.dex.basedata.data.search.SearchItem
;
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.data.search.SearchQueryCondition
;
import
com.yonde.dex.basedata.entity.api.ApiResult
;
import
com.yonde.dex.basedata.entity.api.ApiResult
;
import
com.yonde.dex.basedata.entity.data.DxPageImpl
;
import
com.yonde.dex.basedata.entity.data.DxPageImpl
;
...
@@ -48,21 +49,22 @@ public class ExtActionItemServiceImpl<V extends ExtActionItemVO> implements ExtA
...
@@ -48,21 +49,22 @@ public class ExtActionItemServiceImpl<V extends ExtActionItemVO> implements ExtA
Boolean
allActionItemIsCompleteFlag
=
false
;
Boolean
allActionItemIsCompleteFlag
=
false
;
//根据行动项id查询季报id
//根据行动项id查询季报
SearchQueryCondition
searchQRById
=
SearchUtil
.
buildQueryWithOpenAttr
(
"id"
,
SearchQueryCondition
query
=
SearchQueryCondition
.
builder
()
SearchItem
.
Operator
.
EQ
,
.
openProp
(
SearchQueryCondition
.
builder
().
name
(
"extQuarterlyReport"
)
extActionItemVO
.
getExtQuarterlyReport
().
getId
(),
.
openProp
(
SearchQueryCondition
.
builder
().
name
(
"extActionItems"
).
build
()).
build
())
"extActionItems"
.
searchItems
(
SearchItems
.
builder
()
);
.
item
(
new
SearchItem
(
"id"
,
SearchItem
.
Operator
.
EQ
,
extActionItemVO
.
getId
(),
null
))
ExtQuarterlyReportVO
extQuarterlyReportVO
=
(
ExtQuarterlyReportVO
)
extQuarterlyReportService
.
findOne
(
searchQRById
);
.
build
()).
build
();
for
(
ExtActionItemVO
actionItem
:
extQuarterlyReportVO
.
getExtActionItems
()){
ExtActionItemVO
extActionItemVOForDB
=
this
.
findRecursion
(
query
).
getContent
().
get
(
0
);
for
(
ExtActionItemVO
actionItem
:
extActionItemVOForDB
.
getExtQuarterlyReport
().
getExtActionItems
()){
if
(!
actionItem
.
getState
().
equals
(
Constants
.
COMPLETE
)){
if
(!
actionItem
.
getState
().
equals
(
Constants
.
COMPLETE
)){
break
;
break
;
}
}
allActionItemIsCompleteFlag
=
true
;
allActionItemIsCompleteFlag
=
true
;
}
}
if
(
allActionItemIsCompleteFlag
){
if
(
allActionItemIsCompleteFlag
){
extQuarterlyReportService
.
changeStatus
(
ext
QuarterlyReportVO
.
getId
(),
Constants
.
PENDING_REVIEW
,
true
);
extQuarterlyReportService
.
changeStatus
(
ext
ActionItemVOForDB
.
getExtQuarterlyReport
()
.
getId
(),
Constants
.
PENDING_REVIEW
,
true
);
}
}
return
ApiResult
.
SUCCESS
;
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
...
@@ -158,7 +158,8 @@ public class ExtQuarterlyReportServiceImpl<V extends ExtQuarterlyReportVO> imple
*/
*/
private
void
extFindFileIds
(
List
<
Long
>
fileIds
,
List
<
ObjFileLinkVO
>
objFileLinks
,
String
fileType
)
{
private
void
extFindFileIds
(
List
<
Long
>
fileIds
,
List
<
ObjFileLinkVO
>
objFileLinks
,
String
fileType
)
{
if
(!
CollectionUtils
.
isEmpty
(
objFileLinks
))
{
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
());});
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