From 22db92133e9266cc44048c7276527189efc09acd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Tue, 11 Nov 2025 10:01:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=AF=E5=90=A6=E5=BC=80=E5=90=AF=E4=BC=9A?= =?UTF-8?q?=E5=91=98=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/account/service/impl/AShopUserServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/AShopUserServiceImpl.java b/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/AShopUserServiceImpl.java index 7388b75b0..be7943a84 100644 --- a/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/AShopUserServiceImpl.java +++ b/cash-service/account-service/src/main/java/com/czg/service/account/service/impl/AShopUserServiceImpl.java @@ -17,6 +17,8 @@ import com.czg.market.entity.MkShopCouponRecord; import com.czg.market.entity.SmsPushEventUser; import com.czg.market.service.MemberLevelConfigService; import com.czg.market.service.MkShopCouponRecordService; +import com.czg.market.service.TbMemberConfigService; +import com.czg.market.vo.MemberConfigVO; import com.czg.order.entity.OrderInfo; import com.czg.order.service.OrderInfoService; import com.czg.sa.StpKit; @@ -63,6 +65,8 @@ public class AShopUserServiceImpl implements AShopUserService { private ShopInfoService shopInfoService; @DubboReference private MemberLevelConfigService memberLevelConfigService; + @DubboReference + private TbMemberConfigService memberConfigService; private ShopUser getUserInfo(Long shopUserId) { ShopUser shopUser = shopUserService.queryChain().eq(ShopUser::getId, shopUserId).one(); @@ -189,6 +193,8 @@ public class AShopUserServiceImpl implements AShopUserService { shopUserDTO.setMemberLevelName(memberLevelConfig == null ? null : memberLevelConfig.getName()); if (memberLevelConfig != null) { shopUserDTO.setDiscount(memberLevelConfig.getDiscount()); + MemberConfigVO configVO = memberConfigService.detail(memberLevelConfig.getShopId()); + shopUserDTO.setIsMemberPrice(configVO == null ? 0 : configVO.getIsMemberPrice()); } }