no message
Showing
1 changed file
with
6 additions
and
15 deletions
| ... | @@ -172,25 +172,16 @@ public class CourseServiceImpl implements ICourseService { | ... | @@ -172,25 +172,16 @@ public class CourseServiceImpl implements ICourseService { |
| 172 | } | 172 | } |
| 173 | } | 173 | } |
| 174 | if(StrUtil.isNotBlank(vo.getCaseOssId())){ | 174 | if(StrUtil.isNotBlank(vo.getCaseOssId())){ |
| 175 | SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getCaseOssId())); | 175 | vo.setCaseOssUrl(ossUrlService.selectUrlByIds(vo.getCaseOssId())); |
| 176 | if(Objects.nonNull(oss)) { | 176 | vo.setCaseFileVoList(ossUrlService.selectFileVoByIds(vo.getCaseOssId())); |
| 177 | vo.setCaseOssUrl(oss.getUrl()); | ||
| 178 | vo.setCaseFileVoList(ossUrlService.selectFileVoByIds(vo.getCaseOssId())); | ||
| 179 | } | ||
| 180 | } | 177 | } |
| 181 | if(StrUtil.isNotBlank(vo.getTeachingOssId())){ | 178 | if(StrUtil.isNotBlank(vo.getTeachingOssId())){ |
| 182 | SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getTeachingOssId())); | 179 | vo.setTeachingOssUrl(ossUrlService.selectUrlByIds(vo.getTeachingOssId())); |
| 183 | if(Objects.nonNull(oss)) { | 180 | vo.setTeachingFileVoList(ossUrlService.selectFileVoByIds(vo.getTeachingOssId())); |
| 184 | vo.setTeachingOssUrl(oss.getUrl()); | ||
| 185 | vo.setTeachingFileVoList(ossUrlService.selectFileVoByIds(vo.getTeachingOssId())); | ||
| 186 | } | ||
| 187 | } | 181 | } |
| 188 | if(StrUtil.isNotBlank(vo.getPptOssId())){ | 182 | if(StrUtil.isNotBlank(vo.getPptOssId())){ |
| 189 | SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getPptOssId())); | 183 | vo.setPptOssUrl(ossUrlService.selectUrlByIds(vo.getPptOssId())); |
| 190 | if(Objects.nonNull(oss)) { | 184 | vo.setPptFileVoList(ossUrlService.selectFileVoByIds(vo.getPptOssId())); |
| 191 | vo.setPptOssUrl(oss.getUrl()); | ||
| 192 | vo.setPptFileVoList(ossUrlService.selectFileVoByIds(vo.getPptOssId())); | ||
| 193 | } | ||
| 194 | } | 185 | } |
| 195 | 186 | ||
| 196 | if(StrUtil.isNotBlank(vo.getOssId())){ | 187 | if(StrUtil.isNotBlank(vo.getOssId())){ | ... | ... |
-
Please register or sign in to post a comment