店铺扩展信息 通过类型查询 title字段
This commit is contained in:
parent
9fa99a28e3
commit
e4b25899e5
|
|
@ -100,6 +100,22 @@ public class TbShopExtendServiceImpl extends ServiceImpl<TbShopExtendMapper, TbS
|
||||||
} else {
|
} else {
|
||||||
// ipage 不为空,补充缺失的数据
|
// ipage 不为空,补充缺失的数据
|
||||||
List<TbShopExtend> shopExtends = ipage.getRecords();
|
List<TbShopExtend> shopExtends = ipage.getRecords();
|
||||||
|
for (TbShopExtend shopExtend : shopExtends) {
|
||||||
|
switch (shopExtend.getAutokey()) {
|
||||||
|
case "index_bg":
|
||||||
|
shopExtend.setTitle("首页");
|
||||||
|
break;
|
||||||
|
case "my_bg":
|
||||||
|
shopExtend.setTitle("个人中心");
|
||||||
|
break;
|
||||||
|
case "member_bg":
|
||||||
|
shopExtend.setTitle("会员卡");
|
||||||
|
break;
|
||||||
|
case "shopinfo_bg":
|
||||||
|
shopExtend.setTitle("商品列表");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
Set<String> existingAutokeys = shopExtends.stream()
|
Set<String> existingAutokeys = shopExtends.stream()
|
||||||
.map(TbShopExtend::getAutokey)
|
.map(TbShopExtend::getAutokey)
|
||||||
.collect(Collectors.toSet());
|
.collect(Collectors.toSet());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue