|
@@ -1,5 +1,7 @@
|
|
|
package com.tourism.webadmin.app.website.controller;
|
|
|
|
|
|
+import com.tourism.common.additional.config.ApplicationConfig;
|
|
|
+import com.tourism.common.additional.utils.UrlConvertUtils;
|
|
|
import com.tourism.common.core.constant.ErrorCodeEnum;
|
|
|
import com.tourism.common.core.object.CallResult;
|
|
|
import com.tourism.common.core.object.MyOrderParam;
|
|
@@ -41,6 +43,8 @@ public class WebsiteProjectGroupPurchaseBannerController {
|
|
|
|
|
|
@Autowired
|
|
|
private TourProjectGroupPurchaseBannerService tourProjectGroupPurchaseBannerService;
|
|
|
+ @Autowired
|
|
|
+ private ApplicationConfig applicationConfig;
|
|
|
|
|
|
/**
|
|
|
* 获取拼团Banner列表数据。
|
|
@@ -58,7 +62,11 @@ public class WebsiteProjectGroupPurchaseBannerController {
|
|
|
String orderBy = MyOrderParam.buildOrderBy(myOrderParam, TourProjectGroupPurchaseBanner.class);
|
|
|
List<TourProjectGroupPurchaseBanner> tourProjectGroupPurchaseBannerList =
|
|
|
tourProjectGroupPurchaseBannerService.getTourProjectGroupPurchaseBannerList(tourProjectGroupPurchaseBanner, orderBy);
|
|
|
-
|
|
|
- return ResponseResult.success(MyModelUtil.copyCollectionTo(tourProjectGroupPurchaseBannerList,TourProjectGroupPurchaseBannerVo.class));
|
|
|
+ List<TourProjectGroupPurchaseBannerVo> tourProjectGroupPurchaseBannerVos =
|
|
|
+ MyModelUtil.copyCollectionTo(tourProjectGroupPurchaseBannerList, TourProjectGroupPurchaseBannerVo.class);
|
|
|
+ for(TourProjectGroupPurchaseBannerVo i: tourProjectGroupPurchaseBannerVos){
|
|
|
+ i.setImgUrlAfterConvert(UrlConvertUtils.urlConvertSingle(applicationConfig.getHostIpPort(), i.getImgUrl()));
|
|
|
+ }
|
|
|
+ return ResponseResult.success(tourProjectGroupPurchaseBannerVos);
|
|
|
}
|
|
|
}
|