no message
Showing
1 changed file
with
3 additions
and
0 deletions
| ... | @@ -19,6 +19,7 @@ import com.lego.oss.factory.OssFactory; | ... | @@ -19,6 +19,7 @@ import com.lego.oss.factory.OssFactory; |
| 19 | import com.lego.system.domain.vo.SysOssVo; | 19 | import com.lego.system.domain.vo.SysOssVo; |
| 20 | import com.lego.system.service.impl.SysOssServiceImpl; | 20 | import com.lego.system.service.impl.SysOssServiceImpl; |
| 21 | import lombok.RequiredArgsConstructor; | 21 | import lombok.RequiredArgsConstructor; |
| 22 | import org.springframework.util.CollectionUtils; | ||
| 22 | import org.springframework.web.bind.annotation.*; | 23 | import org.springframework.web.bind.annotation.*; |
| 23 | 24 | ||
| 24 | import javax.servlet.http.HttpServletRequest; | 25 | import javax.servlet.http.HttpServletRequest; |
| ... | @@ -80,6 +81,8 @@ public class CourseController extends BaseController { | ... | @@ -80,6 +81,8 @@ public class CourseController extends BaseController { |
| 80 | @GetMapping("/encrypt") | 81 | @GetMapping("/encrypt") |
| 81 | public R<String> encrypt() { | 82 | public R<String> encrypt() { |
| 82 | List<CourseVo> list = baseMapper.selectVoList(null); | 83 | List<CourseVo> list = baseMapper.selectVoList(null); |
| 84 | if(!CollectionUtils.isEmpty(list)) | ||
| 85 | System.out.println("=================list.size()==========="+list.size()); | ||
| 83 | OssClient storage = OssFactory.instance(); | 86 | OssClient storage = OssFactory.instance(); |
| 84 | for (CourseVo courseVo : list) { | 87 | for (CourseVo courseVo : list) { |
| 85 | String ossIds = courseVo.getTwoDimensionalType(); | 88 | String ossIds = courseVo.getTwoDimensionalType(); | ... | ... |
-
Please register or sign in to post a comment