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
d3c2e031
authored
2025-06-15 19:07:55 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
9f4bad27
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
lego-core/src/main/java/com/lego/core/service/impl/AdvertServiceImpl.java
lego-core/src/main/java/com/lego/core/service/impl/CourseServiceImpl.java
lego-core/src/main/java/com/lego/core/service/impl/AdvertServiceImpl.java
View file @
d3c2e03
...
...
@@ -22,6 +22,7 @@ import org.springframework.stereotype.Service;
import
java.rmi.ServerException
;
import
java.util.List
;
import
java.util.Objects
;
/**
* 广告Service业务层处理
...
...
@@ -67,7 +68,9 @@ public class AdvertServiceImpl implements IAdvertService {
for
(
AdvertVo
vo
:
list
)
{
if
(
StrUtil
.
isNotBlank
(
vo
.
getOssId
()))
{
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getOssId
()));
vo
.
setOssUrl
(
oss
.
getUrl
());
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setOssUrl
(
oss
.
getUrl
());
}
}
}
return
list
;
...
...
lego-core/src/main/java/com/lego/core/service/impl/CourseServiceImpl.java
View file @
d3c2e03
...
...
@@ -98,23 +98,33 @@ public class CourseServiceImpl implements ICourseService {
for
(
CourseVo
vo
:
list
)
{
if
(
StrUtil
.
isNotBlank
(
vo
.
getTwoDimensionalOssId
())){
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getTwoDimensionalOssId
()));
vo
.
setTwoDimensionalOssUrl
(
oss
.
getUrl
());
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setTwoDimensionalOssUrl
(
oss
.
getUrl
());
}
}
if
(
StrUtil
.
isNotBlank
(
vo
.
getThreeDimensionalOssId
())){
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getThreeDimensionalOssId
()));
vo
.
setThreeDimensionalOssUrl
(
oss
.
getUrl
());
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setThreeDimensionalOssUrl
(
oss
.
getUrl
());
}
}
if
(
StrUtil
.
isNotBlank
(
vo
.
getCaseOssId
())){
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getCaseOssId
()));
vo
.
setCaseOssUrl
(
oss
.
getUrl
());
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setCaseOssUrl
(
oss
.
getUrl
());
}
}
if
(
StrUtil
.
isNotBlank
(
vo
.
getTeachingOssId
())){
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getTeachingOssId
()));
vo
.
setTeachingOssUrl
(
oss
.
getUrl
());
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setTeachingOssUrl
(
oss
.
getUrl
());
}
}
if
(
StrUtil
.
isNotBlank
(
vo
.
getPptOssId
())){
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getPptOssId
()));
vo
.
setPptOssUrl
(
oss
.
getUrl
());
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setPptOssUrl
(
oss
.
getUrl
());
}
}
}
return
list
;
...
...
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