Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dcs-doc-expand
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-doc-expand
Commits
e30740ed
Commit
e30740ed
authored
Nov 06, 2024
by
wei
🎱
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取项目裙下所有案卷并展开dxContext
parent
d4f69982
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
ExtFilesServiceImpl.java
...t/dcs/document/core/service/impl/ExtFilesServiceImpl.java
+7
-9
No files found.
inet-doc-expand-core/src/main/java/com/inet/dcs/document/core/service/impl/ExtFilesServiceImpl.java
View file @
e30740ed
...
...
@@ -112,27 +112,25 @@ public class ExtFilesServiceImpl<V extends ExtFilesVO> implements ExtFilesServic
*/
@Override
public
List
<
ExtFilesVO
>
findRecursionByVolumeNumber
(
String
volumeNumber
)
{
// 案卷没有版本概念
SearchQueryCondition
queryDoc
=
SearchQueryCondition
.
builder
()
.
searchItems
(
SearchItems
.
builder
()
.
item
(
new
SearchItem
(
"volumeNumber"
,
SearchItem
.
Operator
.
EQ
,
volumeNumber
,
null
))
.
item
(
new
SearchItem
(
"latest"
,
SearchItem
.
Operator
.
EQ
,
true
,
null
))
.
item
(
new
SearchItem
(
"checkOuted"
,
SearchItem
.
Operator
.
EQ
,
true
,
null
))
/*
.item(new SearchItem("latest", SearchItem.Operator.EQ, true, null))
.item(new SearchItem("checkOuted", SearchItem.Operator.EQ, true, null))
*/
.
operator
(
SearchItems
.
BooleanOperator
.
AND
).
build
()).
build
();
return
(
List
<
ExtFilesVO
>)
this
.
findRecursion
(
queryDoc
).
getContent
();
}
@Override
public
List
<
ExtFilesVO
>
getExtFilesByProjectCode
(
String
projectCode
)
{
SearchQueryCondition
searchProgram
=
SearchUtil
.
buildQuery
(
"number"
,
SearchItem
.
Operator
.
EQ
,
projectCode
);
DxPageImpl
programDxPage
=
extDxContextProjectServiceFeign
.
findRecursion
(
searchProgram
);
DxContextProjectVO
dxContextProjectVO
=
(
DxContextProjectVO
)
programDxPage
.
getContent
().
get
(
0
);
String
volumeNumber
=
"-"
+
dxContextProjectVO
.
getNumber
()
+
"-"
;
String
volumeNumber
=
"-"
+
projectCode
+
"-"
;
SearchQueryCondition
queryDoc
=
SearchQueryCondition
.
builder
()
.
openProp
(
SearchQueryCondition
.
builder
().
name
(
"dxContext"
).
build
())
.
searchItems
(
SearchItems
.
builder
()
.
item
(
new
SearchItem
(
"volumeNumber"
,
SearchItem
.
Operator
.
LIKE
,
volumeNumber
,
null
))
.
item
(
new
SearchItem
(
"latest"
,
SearchItem
.
Operator
.
EQ
,
true
,
null
))
.
item
(
new
SearchItem
(
"checkOuted"
,
SearchItem
.
Operator
.
EQ
,
true
,
null
))
/*
.item(new SearchItem("latest", SearchItem.Operator.EQ, true, null))
.item(new SearchItem("checkOuted", SearchItem.Operator.EQ, true, null))
*/
.
operator
(
SearchItems
.
BooleanOperator
.
AND
).
build
()).
build
();
List
<
ExtFilesVO
>
extFilesVOList
=
(
List
<
ExtFilesVO
>)
this
.
findRecursion
(
queryDoc
).
getContent
();
...
...
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