From f5936d627c41e02b95dd5410af3110d49d87a635 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=9D=BE?= <8605635+zhang3064194730@user.noreply.gitee.com> Date: Sat, 27 Sep 2025 17:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=97=E9=93=BA=E5=88=97=E8=A1=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../czg/service/account/service/impl/AShopUserServiceImpl.java | 3 ++- .../src/main/resources/mapper/ShopUserMapper.xml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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 e373eadac..a067ee36f 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 @@ -81,7 +81,8 @@ public class AShopUserServiceImpl implements AShopUserService { @Override public Page getPage(String key, Integer isVip, BigDecimal amount) { PageHelper.startPage(PageUtil.buildPageHelp()); - return PageUtil.convert(new PageInfo<>(shopUserMapper.selectPageByKeyAndIsVip(StpKit.USER.getShopId(), isVip, key, amount))); + Long mainIdByShopId = shopInfoService.getMainIdByShopId(StpKit.USER.getShopId()); + return PageUtil.convert(new PageInfo<>(shopUserMapper.selectPageByKeyAndIsVip(mainIdByShopId, isVip, key, amount))); } @Override diff --git a/cash-service/account-service/src/main/resources/mapper/ShopUserMapper.xml b/cash-service/account-service/src/main/resources/mapper/ShopUserMapper.xml index 03dbba2bf..d83ccaef6 100644 --- a/cash-service/account-service/src/main/resources/mapper/ShopUserMapper.xml +++ b/cash-service/account-service/src/main/resources/mapper/ShopUserMapper.xml @@ -88,7 +88,7 @@ GROUP BY user_id, shop_id ) f ON f.user_id = a.user_id AND f.shop_id = a.shop_id - WHERE a.source_shop_id = #{shopId} + WHERE a.main_shop_id = #{shopId} AND a.is_vip = #{isVip}