227cab5c by chentao

no message

1 parent f460d4f3
...@@ -146,34 +146,19 @@ public class CourseServiceImpl implements ICourseService { ...@@ -146,34 +146,19 @@ public class CourseServiceImpl implements ICourseService {
146 vo.setTwoDimensionalOssUrl(ossUrlService.selectUrlByIds(vo.getTwoDimensionalOssId())); 146 vo.setTwoDimensionalOssUrl(ossUrlService.selectUrlByIds(vo.getTwoDimensionalOssId()));
147 } 147 }
148 if(StrUtil.isNotBlank(vo.getTwoDimensionalUrl())){ 148 if(StrUtil.isNotBlank(vo.getTwoDimensionalUrl())){
149 SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getTwoDimensionalUrl())); 149 vo.setTwoDimensionalUrl(ossUrlService.selectUrlByIds(vo.getTwoDimensionalUrl()));
150 if(Objects.nonNull(oss)) {
151 vo.setTwoDimensionalUrl(oss.getUrl());
152 }
153 } 150 }
154 if(StrUtil.isNotBlank(vo.getTwoDimensionalType())){ 151 if(StrUtil.isNotBlank(vo.getTwoDimensionalType())){
155 SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getTwoDimensionalType())); 152 vo.setTwoDimensionalType(ossUrlService.selectUrlByIds(vo.getTwoDimensionalType()));
156 if(Objects.nonNull(oss)) {
157 vo.setTwoDimensionalType(oss.getUrl());
158 }
159 } 153 }
160 if(StrUtil.isNotBlank(vo.getThreeDimensionalOssId())){ 154 if(StrUtil.isNotBlank(vo.getThreeDimensionalOssId())){
161 SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getThreeDimensionalOssId())); 155 vo.setThreeDimensionalOssUrl(ossUrlService.selectUrlByIds(vo.getThreeDimensionalOssId()));
162 if(Objects.nonNull(oss)) {
163 vo.setThreeDimensionalOssUrl(oss.getUrl());
164 }
165 } 156 }
166 if(StrUtil.isNotBlank(vo.getThreeDimensionalUrl())){ 157 if(StrUtil.isNotBlank(vo.getThreeDimensionalUrl())){
167 SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getThreeDimensionalUrl())); 158 vo.setThreeDimensionalUrl(ossUrlService.selectUrlByIds(vo.getThreeDimensionalUrl()));
168 if(Objects.nonNull(oss)) {
169 vo.setThreeDimensionalUrl(oss.getUrl());
170 }
171 } 159 }
172 if(StrUtil.isNotBlank(vo.getThreeDimensionalType())){ 160 if(StrUtil.isNotBlank(vo.getThreeDimensionalType())){
173 SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getThreeDimensionalType())); 161 vo.setThreeDimensionalType(ossUrlService.selectUrlByIds(vo.getThreeDimensionalType()));
174 if(Objects.nonNull(oss)) {
175 vo.setThreeDimensionalType(oss.getUrl());
176 }
177 } 162 }
178 if(StrUtil.isNotBlank(vo.getCaseOssId())){ 163 if(StrUtil.isNotBlank(vo.getCaseOssId())){
179 vo.setCaseOssUrl(ossUrlService.selectUrlByIds(vo.getCaseOssId())); 164 vo.setCaseOssUrl(ossUrlService.selectUrlByIds(vo.getCaseOssId()));
...@@ -189,10 +174,7 @@ public class CourseServiceImpl implements ICourseService { ...@@ -189,10 +174,7 @@ public class CourseServiceImpl implements ICourseService {
189 } 174 }
190 175
191 if(StrUtil.isNotBlank(vo.getOssId())){ 176 if(StrUtil.isNotBlank(vo.getOssId())){
192 SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getOssId())); 177 vo.setOssUrl(ossUrlService.selectUrlByIds(vo.getOssId()));
193 if(Objects.nonNull(oss)) {
194 vo.setOssUrl(oss.getUrl());
195 }
196 } 178 }
197 } 179 }
198 return list; 180 return list;
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!