|
@@ -2,6 +2,7 @@ package com.community.huiju.service.impl;
|
2
|
2
|
|
3
|
3
|
import com.community.commom.constant.Constant;
|
4
|
4
|
import com.community.commom.utils.DateUtils;
|
|
5
|
+import com.community.huiju.common.perproties.LoginCodePerproties;
|
5
|
6
|
import com.community.huiju.dao.ToBannerMapper;
|
6
|
7
|
import com.community.huiju.dao.TpCarouselSettingMapper;
|
7
|
8
|
import com.community.huiju.model.ToBanner;
|
|
@@ -25,6 +26,9 @@ public class BannerServiceImpl implements BannerServiceI {
|
25
|
26
|
@Autowired
|
26
|
27
|
private TpCarouselSettingMapper tpCarouselSettingMapper;
|
27
|
28
|
|
|
29
|
+ @Autowired
|
|
30
|
+ private LoginCodePerproties loginCodePerproties;
|
|
31
|
+
|
28
|
32
|
@Override
|
29
|
33
|
public ToBanner viewBannerImg(Integer bannerId) {
|
30
|
34
|
return toBannerMapper.selectByCommunityId(bannerId);
|
|
@@ -39,7 +43,7 @@ public class BannerServiceImpl implements BannerServiceI {
|
39
|
43
|
List<ToBanner> bannersList = toBannerMapper.selectAllByNum(nowTime, bannerNum, bannerPosition, communityId);
|
40
|
44
|
bannersList.stream().forEach(banner -> {
|
41
|
45
|
if (banner.getBannerType().equals(Constant.BANNER_TYPE_ARTICLE)){
|
42
|
|
- banner.setExternalLink("http://101.132.102.231:8011/#/bannerDetail?from=index&id="+banner.getId());
|
|
46
|
+ banner.setExternalLink(loginCodePerproties.getAppUrl() + "bannerDetail?from=index&id="+banner.getId());
|
43
|
47
|
}
|
44
|
48
|
});
|
45
|
49
|
return bannersList;
|