d3440b3f by chentao

no message

1 parent eb629319
......@@ -76,8 +76,7 @@ public class CourseServiceImpl implements ICourseService {
vo.setCaseOssUrl(oss.getUrl());
}
if(StrUtil.isNotBlank(vo.getTeachingOssId())){
SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getTeachingOssId()));
vo.setTeachingOssUrl(oss.getUrl());
vo.setTeachingOssUrl(ossUrlService.selectUrlByIds(vo.getTeachingOssId()));
}
if(StrUtil.isNotBlank(vo.getPptOssId())){
SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getPptOssId()));
......@@ -116,10 +115,7 @@ public class CourseServiceImpl implements ICourseService {
}
}
if(StrUtil.isNotBlank(vo.getTeachingOssId())){
SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getTeachingOssId()));
if(Objects.nonNull(oss)) {
vo.setTeachingOssUrl(oss.getUrl());
}
vo.setTeachingOssUrl(ossUrlService.selectUrlByIds(vo.getTeachingOssId()));
}
if(StrUtil.isNotBlank(vo.getPptOssId())){
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!