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
080e28c4
authored
2025-06-14 15:26:08 +0800
by
chentao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
8240b127
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
13 deletions
lego-core/src/main/java/com/lego/core/service/impl/CourseServiceImpl.java
lego-core/src/main/java/com/lego/core/service/impl/CourseServiceImpl.java
View file @
080e28c
...
...
@@ -27,6 +27,7 @@ import org.springframework.stereotype.Service;
import
java.rmi.ServerException
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.Set
;
/**
...
...
@@ -136,47 +137,67 @@ 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
.
getTwoDimensionalUrl
())){
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getTwoDimensionalUrl
()));
vo
.
setTwoDimensionalUrl
(
oss
.
getUrl
());
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setTwoDimensionalUrl
(
oss
.
getUrl
());
}
}
if
(
StrUtil
.
isNotBlank
(
vo
.
getTwoDimensionalType
())){
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getTwoDimensionalType
()));
vo
.
setTwoDimensionalType
(
oss
.
getUrl
());
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setTwoDimensionalType
(
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
.
getThreeDimensionalUrl
())){
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getThreeDimensionalUrl
()));
vo
.
setThreeDimensionalUrl
(
oss
.
getUrl
());
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setThreeDimensionalUrl
(
oss
.
getUrl
());
}
}
if
(
StrUtil
.
isNotBlank
(
vo
.
getThreeDimensionalType
())){
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getThreeDimensionalType
()));
vo
.
setThreeDimensionalType
(
oss
.
getUrl
());
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setThreeDimensionalType
(
oss
.
getUrl
());
}
}
if
(
StrUtil
.
isNotBlank
(
vo
.
getCaseOssId
())){
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getCaseOssId
()));
vo
.
setCaseOssUrl
(
oss
.
getUrl
());
vo
.
setCaseFileVoList
(
ossUrlService
.
selectFileVoByIds
(
vo
.
getCaseOssId
()));
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setCaseOssUrl
(
oss
.
getUrl
());
vo
.
setCaseFileVoList
(
ossUrlService
.
selectFileVoByIds
(
vo
.
getCaseOssId
()));
}
}
if
(
StrUtil
.
isNotBlank
(
vo
.
getTeachingOssId
())){
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getTeachingOssId
()));
vo
.
setTeachingOssUrl
(
oss
.
getUrl
());
vo
.
setTeachingFileVoList
(
ossUrlService
.
selectFileVoByIds
(
vo
.
getTeachingOssId
()));
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setTeachingOssUrl
(
oss
.
getUrl
());
vo
.
setTeachingFileVoList
(
ossUrlService
.
selectFileVoByIds
(
vo
.
getTeachingOssId
()));
}
}
if
(
StrUtil
.
isNotBlank
(
vo
.
getPptOssId
())){
SysOssVo
oss
=
iSysOssService
.
getById
(
Long
.
valueOf
(
vo
.
getPptOssId
()));
vo
.
setPptOssUrl
(
oss
.
getUrl
());
vo
.
setPptFileVoList
(
ossUrlService
.
selectFileVoByIds
(
vo
.
getPptOssId
()));
if
(
Objects
.
nonNull
(
oss
))
{
vo
.
setPptOssUrl
(
oss
.
getUrl
());
vo
.
setPptFileVoList
(
ossUrlService
.
selectFileVoByIds
(
vo
.
getPptOssId
()));
}
}
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
;
...
...
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