no message
Showing
1 changed file
with
3 additions
and
2 deletions
| ... | @@ -6,6 +6,7 @@ import cn.hutool.core.util.StrUtil; | ... | @@ -6,6 +6,7 @@ import cn.hutool.core.util.StrUtil; |
| 6 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; | 6 | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| 7 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | 7 | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| 8 | import com.lego.common.core.page.TableDataInfo; | 8 | import com.lego.common.core.page.TableDataInfo; |
| 9 | import com.lego.common.core.service.OssService; | ||
| 9 | import com.lego.common.utils.MessageUtils; | 10 | import com.lego.common.utils.MessageUtils; |
| 10 | import com.lego.common.utils.StreamUtils; | 11 | import com.lego.common.utils.StreamUtils; |
| 11 | import com.lego.core.annotation.LanguageAnnotation; | 12 | import com.lego.core.annotation.LanguageAnnotation; |
| ... | @@ -45,6 +46,7 @@ public class BuildingBlockServiceImpl implements IBuildingBlockService { | ... | @@ -45,6 +46,7 @@ public class BuildingBlockServiceImpl implements IBuildingBlockService { |
| 45 | private final IEntiretyService entiretyService; | 46 | private final IEntiretyService entiretyService; |
| 46 | private final CourseMapper courseMapper; | 47 | private final CourseMapper courseMapper; |
| 47 | private final ISysOssService iSysOssService; | 48 | private final ISysOssService iSysOssService; |
| 49 | private final OssService ossUrlService; | ||
| 48 | 50 | ||
| 49 | /** | 51 | /** |
| 50 | * 查询所有列表(带分页) | 52 | * 查询所有列表(带分页) |
| ... | @@ -69,8 +71,7 @@ public class BuildingBlockServiceImpl implements IBuildingBlockService { | ... | @@ -69,8 +71,7 @@ public class BuildingBlockServiceImpl implements IBuildingBlockService { |
| 69 | for (BuildingBlockVo vo : list) { | 71 | for (BuildingBlockVo vo : list) { |
| 70 | vo.setEntiretyName(entiretyMap.getOrDefault(vo.getEntiretyId(), new EntiretyVo()).getName()); | 72 | vo.setEntiretyName(entiretyMap.getOrDefault(vo.getEntiretyId(), new EntiretyVo()).getName()); |
| 71 | if (StrUtil.isNotBlank(vo.getOssId())) { | 73 | if (StrUtil.isNotBlank(vo.getOssId())) { |
| 72 | SysOssVo oss = iSysOssService.getById(Long.valueOf(vo.getOssId())); | 74 | vo.setOssUrl(ossUrlService.selectUrlByIds(vo.getOssId())); |
| 73 | vo.setOssUrl(oss.getUrl()); | ||
| 74 | } | 75 | } |
| 75 | } | 76 | } |
| 76 | } | 77 | } | ... | ... |
-
Please register or sign in to post a comment