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
9577d9a9
authored
2025-07-01 19:57:30 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
91d4561d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
lego-core/src/main/java/com/lego/core/service/impl/BuildingBlockServiceImpl.java
lego-core/src/main/java/com/lego/core/service/impl/BuildingBlockServiceImpl.java
View file @
9577d9a
...
...
@@ -6,6 +6,7 @@ import cn.hutool.core.util.StrUtil;
import
com.baomidou.mybatisplus.core.toolkit.Wrappers
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.lego.common.core.page.TableDataInfo
;
import
com.lego.common.core.service.OssService
;
import
com.lego.common.utils.MessageUtils
;
import
com.lego.common.utils.StreamUtils
;
import
com.lego.core.annotation.LanguageAnnotation
;
...
...
@@ -45,6 +46,7 @@ public class BuildingBlockServiceImpl implements IBuildingBlockService {
private
final
IEntiretyService
entiretyService
;
private
final
CourseMapper
courseMapper
;
private
final
ISysOssService
iSysOssService
;
private
final
OssService
ossUrlService
;
/**
* 查询所有列表(带分页)
...
...
@@ -69,8 +71,7 @@ public class BuildingBlockServiceImpl implements IBuildingBlockService {
for
(
BuildingBlockVo
vo
:
list
)
{
vo
.
setEntiretyName
(
entiretyMap
.
getOrDefault
(
vo
.
getEntiretyId
(),
new
EntiretyVo
()).
getName
());
if
(
StrUtil
.
isNotBlank
(
vo
.
getOssId
()))
{
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getOssId
()));
vo
.
setOssUrl
(
oss
.
getUrl
());
vo
.
setOssUrl
(
ossUrlService
.
selectUrlByIds
(
vo
.
getOssId
()));
}
}
}
...
...
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