Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-web
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
cloud-web
Commits
51b6934a
Commit
51b6934a
authored
Dec 23, 2024
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门户搜素接口
parent
5ff0c145
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
cloud-web-student/src/main/java/com/yizhi/application/protal/controller/PortalApiController.java
+8
-8
No files found.
cloud-web-student/src/main/java/com/yizhi/application/protal/controller/PortalApiController.java
View file @
51b6934a
...
...
@@ -221,9 +221,9 @@ public class PortalApiController {
List
<
Long
>
classNameList
=
informationVoList
.
stream
().
map
(
InformationVo:
:
getTypeOne
).
collect
(
Collectors
.
toList
());
vo
.
setClassificationVOList
(
classificationVOList
.
stream
().
filter
(
c
->
classNameList
.
contains
(
c
.
getId
())).
collect
(
Collectors
.
toList
()));
vo
.
getClassificationVOList
().
stream
().
forEach
(
classificationVO
->
{
classificationVO
.
getData
().
forEach
(
typeTwo
->{
typeTwo
.
setInformationVoList
(
informationVoList
.
stream
().
filter
(
informationVo
->
Objects
.
equals
(
informationVo
.
getTypeTwo
(),
typeTwo
.
getId
())).
collect
(
Collectors
.
toList
()));
});
//
classificationVO.getData().forEach(typeTwo->{
classificationVO
.
setInformationVoList
(
informationVoList
.
stream
().
filter
(
informationVo
->
Objects
.
equals
(
informationVo
.
getTypeOne
(),
classificationVO
.
getId
())).
collect
(
Collectors
.
toList
()));
//
});
});
classificationVOList
=
classificationVOList
.
stream
().
filter
(
c
->!
classNameList
.
contains
(
c
.
getId
())).
collect
(
Collectors
.
toList
());
}
...
...
@@ -231,8 +231,8 @@ public class PortalApiController {
List
<
ClassificationVO
>
classificationVONewList
=
Lists
.
newArrayList
();
if
(
CollectionUtil
.
isNotEmpty
(
classificationVOList
)){
classificationVOList
.
stream
().
forEach
(
classificationVO
->
{
classificationVO
.
getData
().
forEach
(
typeTwo
->{
if
(
typeTwo
.
getName
().
indexOf
(
searchName
)>=
0
){
//
classificationVO.getData().forEach(typeTwo->{
if
(
classificationVO
.
getName
().
indexOf
(
searchName
)>=
0
){
InfomationParamReleaseVO
releaseVO
=
new
InfomationParamReleaseVO
();
releaseVO
.
setCompanyCode
(
context
.
getCompanyCode
());
releaseVO
.
setCompanyId
(
context
.
getCompanyId
());
...
...
@@ -244,9 +244,9 @@ public class PortalApiController {
releaseVO
.
setOrgIds
(
context
.
getOrgIds
());
releaseVO
.
setOrgName
(
context
.
getOrgName
());
releaseVO
.
setTypeId
(
classificationVO
.
getId
());
releaseVO
.
setTypeTwoId
(
typeTwo
.
getId
());
releaseVO
.
setTypeTwoId
(
classificationVO
.
getId
());
Page
<
InformationVo
>
page
=
informationManageFeignClients
.
releaseList
(
releaseVO
);
typeTwo
.
setInformationVoList
(
page
!=
null
?
page
.
getRecords
():
Lists
.
newArrayList
());
classificationVO
.
setInformationVoList
(
page
!=
null
?
page
.
getRecords
():
Lists
.
newArrayList
());
ClassificationVO
classification
=
new
ClassificationVO
();
BeanUtil
.
copyProperties
(
classificationVO
,
classification
);
...
...
@@ -261,7 +261,7 @@ public class PortalApiController {
}
}
}
});
//
});
});
}
dictionaryFeignClients
.
insertBySearchName
(
searchName
);
...
...
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