店铺列表查询修改

This commit is contained in:
张松
2025-09-27 17:18:31 +08:00
parent 670ef1f87b
commit f5936d627c
2 changed files with 3 additions and 2 deletions

View File

@@ -81,7 +81,8 @@ public class AShopUserServiceImpl implements AShopUserService {
@Override
public Page<ShopUserDTO> 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

View File

@@ -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}
<if test="isVip != null">
AND a.is_vip = #{isVip}