## 会员专区显示专区+3个商品;
This commit is contained in:
parent
4f71671dea
commit
50dd3be22d
|
@ -1237,9 +1237,10 @@ public class BdWaresServiceImpl extends ServiceImpl<BdWaresMapper, BdWares> impl
|
||||||
// 推荐商品 取值前两个
|
// 推荐商品 取值前两个
|
||||||
List<BdWaresExt> waresList = this.queryByRecommendList(specialArea, EYesNo.YES.getIntValue(), pkCountry, waresShowMap);
|
List<BdWaresExt> waresList = this.queryByRecommendList(specialArea, EYesNo.YES.getIntValue(), pkCountry, waresShowMap);
|
||||||
List<BdWaresExt> filterList = new ArrayList<>();
|
List<BdWaresExt> filterList = new ArrayList<>();
|
||||||
if (waresList.size() > 2) {
|
if (waresList.size() > 3) {
|
||||||
filterList.add(waresList.get(0));
|
filterList.add(waresList.get(0));
|
||||||
filterList.add(waresList.get(1));
|
filterList.add(waresList.get(1));
|
||||||
|
filterList.add(waresList.get(2));
|
||||||
} else {
|
} else {
|
||||||
filterList.addAll(waresList);
|
filterList.addAll(waresList);
|
||||||
}
|
}
|
||||||
|
@ -1262,6 +1263,7 @@ public class BdWaresServiceImpl extends ServiceImpl<BdWaresMapper, BdWares> impl
|
||||||
// 根据专区排序(按照指定排序排序: 注冊 升级 复购 自营 海粉 嗨粉)
|
// 根据专区排序(按照指定排序排序: 注冊 升级 复购 自营 海粉 嗨粉)
|
||||||
resultList.sort(Comparator.comparingInt(RecommendSpecialAreaVo::getSort));
|
resultList.sort(Comparator.comparingInt(RecommendSpecialAreaVo::getSort));
|
||||||
recommendWaresInfoVo.setRecommendSpecialAreaList(resultList);
|
recommendWaresInfoVo.setRecommendSpecialAreaList(resultList);
|
||||||
|
|
||||||
// 查询推荐商品
|
// 查询推荐商品
|
||||||
List<BdWaresExt> waresList = this.selectByRecommentList(pkCountry, specialAreaList);
|
List<BdWaresExt> waresList = this.selectByRecommentList(pkCountry, specialAreaList);
|
||||||
// 校验商品奖衔和等级/团队权限
|
// 校验商品奖衔和等级/团队权限
|
||||||
|
|
Loading…
Reference in New Issue