Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
legobackend
/
lego-manage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
46f63d65
authored
2024-11-10 10:26:08 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
63219de6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
lego-core/src/main/java/com/lego/core/service/impl/EntiretyServiceImpl.java
lego-core/src/main/java/com/lego/core/service/impl/EntiretyServiceImpl.java
View file @
46f63d6
...
...
@@ -61,14 +61,14 @@ public class EntiretyServiceImpl implements IEntiretyService {
* 处理二级数据
*/
List
<
EntiretyVo
>
list
=
page
.
getRecords
();
Set
<
String
>
B
uildingBlockIdList
=
StreamUtils
.
toSet
(
list
,
EntiretyVo:
:
getId
);
List
<
BuildingBlockVo
>
BuildingBlockList
=
getBuildingBlockService
().
list
(
language
,
B
uildingBlockIdList
);
for
(
BuildingBlockVo
vo
:
B
uildingBlockList
){
Set
<
String
>
b
uildingBlockIdList
=
StreamUtils
.
toSet
(
list
,
EntiretyVo:
:
getId
);
List
<
BuildingBlockVo
>
buildingBlockList
=
getBuildingBlockService
().
list
(
language
,
b
uildingBlockIdList
);
for
(
BuildingBlockVo
vo
:
b
uildingBlockList
){
if
(
StrUtil
.
isNotBlank
(
vo
.
getOssId
()))
{
vo
.
setOssUrl
(
ossService
.
selectUrlByIds
(
vo
.
getOssId
()));
}
}
Map
<
String
,
List
<
BuildingBlockVo
>>
buildingBlockMap
=
StreamUtils
.
groupByKey
(
B
uildingBlockList
,
BuildingBlockVo:
:
getEntiretyId
);
Map
<
String
,
List
<
BuildingBlockVo
>>
buildingBlockMap
=
StreamUtils
.
groupByKey
(
b
uildingBlockList
,
BuildingBlockVo:
:
getEntiretyId
);
for
(
EntiretyVo
vo:
list
){
vo
.
setOssUrl
(
ossService
.
selectUrlByIds
(
vo
.
getOssId
()));
vo
.
setBuildingblockList
(
buildingBlockMap
.
get
(
vo
.
getId
()));
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment