no message
Showing
1 changed file
with
3 additions
and
2 deletions
| ... | @@ -17,6 +17,7 @@ import com.lego.core.domin.Entirety; | ... | @@ -17,6 +17,7 @@ import com.lego.core.domin.Entirety; |
| 17 | import com.lego.core.domin.bo.EntiretyBo; | 17 | import com.lego.core.domin.bo.EntiretyBo; |
| 18 | import com.lego.core.domin.vo.BuildingBlockVo; | 18 | import com.lego.core.domin.vo.BuildingBlockVo; |
| 19 | import com.lego.core.domin.vo.EntiretyVo; | 19 | import com.lego.core.domin.vo.EntiretyVo; |
| 20 | import com.lego.core.mapper.BuildingBlockMapper; | ||
| 20 | import com.lego.core.mapper.EntiretyMapper; | 21 | import com.lego.core.mapper.EntiretyMapper; |
| 21 | import com.lego.core.service.IBuildingBlockService; | 22 | import com.lego.core.service.IBuildingBlockService; |
| 22 | import com.lego.core.service.IEntiretyService; | 23 | import com.lego.core.service.IEntiretyService; |
| ... | @@ -36,7 +37,7 @@ import java.util.*; | ... | @@ -36,7 +37,7 @@ import java.util.*; |
| 36 | @Service | 37 | @Service |
| 37 | public class EntiretyServiceImpl implements IEntiretyService { | 38 | public class EntiretyServiceImpl implements IEntiretyService { |
| 38 | private final EntiretyMapper baseMapper; | 39 | private final EntiretyMapper baseMapper; |
| 39 | private final IBuildingBlockService buildingBlockService; | 40 | private final BuildingBlockMapper buildingBlockMapper; |
| 40 | private final OssService ossService; | 41 | private final OssService ossService; |
| 41 | 42 | ||
| 42 | public IBuildingBlockService getBuildingBlockService() { | 43 | public IBuildingBlockService getBuildingBlockService() { |
| ... | @@ -84,7 +85,7 @@ public class EntiretyServiceImpl implements IEntiretyService { | ... | @@ -84,7 +85,7 @@ public class EntiretyServiceImpl implements IEntiretyService { |
| 84 | if(StrUtil.isNotBlank(vo.getOssId())){ | 85 | if(StrUtil.isNotBlank(vo.getOssId())){ |
| 85 | vo.setOssUrl(ossService.selectUrlByIds(vo.getOssId())); | 86 | vo.setOssUrl(ossService.selectUrlByIds(vo.getOssId())); |
| 86 | } | 87 | } |
| 87 | List<BuildingBlockVo> buildingBlockVoList = buildingBlockService.list(language,Collections.singletonList(vo.getId())); | 88 | List<BuildingBlockVo> buildingBlockVoList = buildingBlockMapper.selectVoList(Wrappers.<BuildingBlock>lambdaQuery().eq(BuildingBlock::getLanguage, language).eq(BuildingBlock::getEntiretyId, vo.getId())); |
| 88 | for(BuildingBlockVo blockVo:buildingBlockVoList){ | 89 | for(BuildingBlockVo blockVo:buildingBlockVoList){ |
| 89 | if(StrUtil.isNotBlank(blockVo.getOssId())){ | 90 | if(StrUtil.isNotBlank(blockVo.getOssId())){ |
| 90 | blockVo.setOssUrl(ossService.selectUrlByIds(blockVo.getOssId())); | 91 | blockVo.setOssUrl(ossService.selectUrlByIds(blockVo.getOssId())); | ... | ... |
-
Please register or sign in to post a comment