d3440b3f by chentao

no message

1 parent eb629319
...@@ -76,8 +76,7 @@ public class CourseServiceImpl implements ICourseService { ...@@ -76,8 +76,7 @@ public class CourseServiceImpl implements ICourseService {
76 vo.setCaseOssUrl(oss.getUrl()); 76 vo.setCaseOssUrl(oss.getUrl());
77 } 77 }
78 if(StrUtil.isNotBlank(vo.getTeachingOssId())){ 78 if(StrUtil.isNotBlank(vo.getTeachingOssId())){
79 SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getTeachingOssId())); 79 vo.setTeachingOssUrl(ossUrlService.selectUrlByIds(vo.getTeachingOssId()));
80 vo.setTeachingOssUrl(oss.getUrl());
81 } 80 }
82 if(StrUtil.isNotBlank(vo.getPptOssId())){ 81 if(StrUtil.isNotBlank(vo.getPptOssId())){
83 SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getPptOssId())); 82 SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getPptOssId()));
...@@ -116,10 +115,7 @@ public class CourseServiceImpl implements ICourseService { ...@@ -116,10 +115,7 @@ public class CourseServiceImpl implements ICourseService {
116 } 115 }
117 } 116 }
118 if(StrUtil.isNotBlank(vo.getTeachingOssId())){ 117 if(StrUtil.isNotBlank(vo.getTeachingOssId())){
119 SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getTeachingOssId())); 118 vo.setTeachingOssUrl(ossUrlService.selectUrlByIds(vo.getTeachingOssId()));
120 if(Objects.nonNull(oss)) {
121 vo.setTeachingOssUrl(oss.getUrl());
122 }
123 } 119 }
124 if(StrUtil.isNotBlank(vo.getPptOssId())){ 120 if(StrUtil.isNotBlank(vo.getPptOssId())){
125 SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getPptOssId())); 121 SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getPptOssId()));
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!