From e4b25899e516f8651e73a0b554bd80a08c710ceb Mon Sep 17 00:00:00 2001 From: wangw <1594593906@qq.com> Date: Wed, 18 Sep 2024 17:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E6=89=A9=E5=B1=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=20=E9=80=9A=E8=BF=87=E7=B1=BB=E5=9E=8B=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=20title=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/TbShopExtendServiceImpl.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/eladmin-system/src/main/java/cn/ysk/cashier/mybatis/service/impl/TbShopExtendServiceImpl.java b/eladmin-system/src/main/java/cn/ysk/cashier/mybatis/service/impl/TbShopExtendServiceImpl.java index 12ba7d1f..cf85c458 100644 --- a/eladmin-system/src/main/java/cn/ysk/cashier/mybatis/service/impl/TbShopExtendServiceImpl.java +++ b/eladmin-system/src/main/java/cn/ysk/cashier/mybatis/service/impl/TbShopExtendServiceImpl.java @@ -100,6 +100,22 @@ public class TbShopExtendServiceImpl extends ServiceImpl 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 existingAutokeys = shopExtends.stream() .map(TbShopExtend::getAutokey) .collect(Collectors.toSet());