店铺扩展信息 通过类型查询 title字段

This commit is contained in:
wangw 2024-09-18 17:32:55 +08:00
parent 9fa99a28e3
commit e4b25899e5
1 changed files with 16 additions and 0 deletions

View File

@ -100,6 +100,22 @@ public class TbShopExtendServiceImpl extends ServiceImpl<TbShopExtendMapper, TbS
} else {
// ipage 不为空补充缺失的数据
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()
.map(TbShopExtend::getAutokey)
.collect(Collectors.toSet());