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}