|
@@ -70,9 +70,7 @@ public class BasicToWebServiceImpl implements BasicToWebService
|
|
|
List<BannerInfoVo> dataList = bannerInfoVoMyPageData.getDataList();
|
|
|
//先把imgUrl由jaon转换为List<FileUrlObject>
|
|
|
dataList.stream().forEach(item ->{
|
|
|
- if (StringUtils.isNotEmpty(item.getImgUrl())) {
|
|
|
- item.setImgUrlsAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), item.getImgUrl()));
|
|
|
- }
|
|
|
+ item.setImgUrlsAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), item.getImgUrl()));
|
|
|
});
|
|
|
|
|
|
return bannerInfoVoMyPageData;
|
|
@@ -117,9 +115,7 @@ public class BasicToWebServiceImpl implements BasicToWebService
|
|
|
List<DirectoryInfoVo> dataList = directoryInfoVoMyPageData.getDataList();
|
|
|
//先把imgUrl由jaon转换为List<FileUrlObject>
|
|
|
dataList.stream().forEach(item ->{
|
|
|
- if (StringUtils.isNotEmpty(item.getHotPictureUrl())) {
|
|
|
- item.setHotPictureUrlsAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), item.getHotPictureUrl()));
|
|
|
- }
|
|
|
+ item.setHotPictureUrlsAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), item.getHotPictureUrl()));
|
|
|
});
|
|
|
return directoryInfoVoMyPageData;
|
|
|
}
|
|
@@ -144,9 +140,7 @@ public class BasicToWebServiceImpl implements BasicToWebService
|
|
|
MyPageData<TourismProjectTravelNotesWriteVo> pageData = MyPageUtil.makeResponseData(writeList, TourismProjectTravelNotesWriteVo.class);
|
|
|
List<TourismProjectTravelNotesWriteVo> dataList = pageData.getDataList();
|
|
|
dataList.stream().forEach(item->{
|
|
|
- if (StringUtils.isNotEmpty(item.getTourismUrl())) {
|
|
|
- item.setHomeHotPicturesAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), item.getTourismUrl()));
|
|
|
- }
|
|
|
+ item.setHomeHotPicturesAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), item.getTourismUrl()));
|
|
|
});
|
|
|
|
|
|
return pageData;
|
|
@@ -200,9 +194,7 @@ public class BasicToWebServiceImpl implements BasicToWebService
|
|
|
List<TourismProjectTravelNotesWriteVo> dataList = pageData.getDataList();
|
|
|
|
|
|
dataList.stream().forEach(item->{
|
|
|
- if(StringUtils.isNotEmpty(item.getTourismUrl())){
|
|
|
- item.setTourismUrlsAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), item.getTourismUrl()));
|
|
|
- }
|
|
|
+ item.setTourismUrlsAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), item.getTourismUrl()));
|
|
|
});
|
|
|
|
|
|
return pageData;
|
|
@@ -228,17 +220,9 @@ public class BasicToWebServiceImpl implements BasicToWebService
|
|
|
MyModelUtil.copyTo(writeDto, TourismProjectTravelNotesWriteVo.class);
|
|
|
|
|
|
if(writeVo != null) {
|
|
|
- if (StringUtils.isNotEmpty(writeVo.getTourismUrl())) {
|
|
|
- writeVo.setTourismUrlsAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), writeVo.getTourismUrl()));
|
|
|
- }
|
|
|
-
|
|
|
- if (StringUtils.isNotEmpty(writeVo.getTourismUrl())) {
|
|
|
- writeVo.setHomeHotPicturesAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), writeVo.getTourismUrl()));
|
|
|
- }
|
|
|
-
|
|
|
- if (StringUtils.isNotEmpty(writeVo.getTravelNotesBanner())) {
|
|
|
- writeVo.setTravelNotesBannerAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), writeVo.getTravelNotesBanner()));
|
|
|
- }
|
|
|
+ writeVo.setTourismUrlsAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), writeVo.getTourismUrl()));
|
|
|
+ writeVo.setHomeHotPicturesAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), writeVo.getTourismUrl()));
|
|
|
+ writeVo.setTravelNotesBannerAfterConvert(UrlConvertUtils.urlConvert(applicationConfig.getHostIpPort(), writeVo.getTravelNotesBanner()));
|
|
|
}
|
|
|
return writeVo;
|
|
|
}
|