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
536ef254
authored
2025-07-01 20:15:37 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
a6694ad7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 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 @
536ef25
...
...
@@ -27,10 +27,7 @@ import lombok.RequiredArgsConstructor;
import
org.springframework.stereotype.Service
;
import
java.rmi.ServerException
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.*
;
/**
* 套件Service业务层处理
...
...
@@ -69,17 +66,21 @@ public class EntiretyServiceImpl implements IEntiretyService {
Set
<
String
>
buildingBlockIdList
=
StreamUtils
.
toSet
(
list
,
EntiretyVo:
:
getId
);
List
<
BuildingBlockVo
>
buildingBlockList
=
getBuildingBlockService
().
list
(
language
,
buildingBlockIdList
);
for
(
BuildingBlockVo
vo
:
buildingBlockList
){
if
(
StrUtil
.
isNotBlank
(
vo
.
getOssId
()))
{
if
(
Objects
.
nonNull
(
vo
))
{
if
(
StrUtil
.
isNotBlank
(
vo
.
getOssId
()))
{
vo
.
setOssUrl
(
ossUrlService
.
selectUrlByIds
(
vo
.
getOssId
()));
}
}
}
Map
<
String
,
List
<
BuildingBlockVo
>>
buildingBlockMap
=
StreamUtils
.
groupByKey
(
buildingBlockList
,
BuildingBlockVo:
:
getEntiretyId
);
for
(
EntiretyVo
vo:
list
){
if
(
StrUtil
.
isNotBlank
(
vo
.
getOssId
()))
{
if
(
Objects
.
nonNull
(
vo
))
{
if
(
StrUtil
.
isNotBlank
(
vo
.
getOssId
()))
{
vo
.
setOssUrl
(
ossUrlService
.
selectUrlByIds
(
vo
.
getOssId
()));
}
vo
.
setBuildingblockList
(
buildingBlockMap
.
get
(
vo
.
getId
()));
}
}
return
TableDataInfo
.
build
(
page
);
}
...
...
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